2962 Commits
Author SHA1 Message Date
Aleksandr Sharov 573c9194d9 Adding option --force-server to specify a server to ipa-certupdate tool.
This can be used for disaster recovery or situation with replication
issues, when only one server is fixed/working and is a source of
truth about CA certs for all the other replicas and clients.

Fixes: https://pagure.io/freeipa/issue/9839
Signed-off-by: Aleksandr Sharov (asharov@redhat.com)
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2026-01-15 09:28:59 -03:00
PRANAV THUBE fdfce9ac52 ipatests: Refactor and port hbac functional tests.
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Anuja More <amore@redhat.com>
2025-12-26 17:25:38 +01:00
Florence Blanc-Renaud b545821431 ipatests: do not allow zone overlap for TestInstallWithCA_DNS4
This test specifically requires to be run without the
--allow-zone-overlap installation option.

Fixes: https://pagure.io/freeipa/issue/9902
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2025-12-23 10:10:24 -03:00
PRANAV THUBE c8c7192225 Extended eDNS testsuite with Enforced DNS policy testcases.
Extend the EDNS test suite by, adding structured tests for DNS-over-TLS under a enforced policy with IPA and external CAs.
Tests:
TestDNSOverTLS_EnforcedPolicy_IPA_CA
TestDNSOverTLS_EnforcedPolicy_External_CA

Related: https://issues.redhat.com/browse/IDM-1524

Signed-off-by: PRANAV THUBE <pthube@redhat.com>
Reviewed-By: Antonio Torres <antorres@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2025-12-18 15:58:04 +05:30
Rob Crittenden f28c8a2bc3 ipatests: Add the remote IP before running ipa-migrate
The base class MigrationTest installation sets up two
separate servers, each with their own DNS. The second
one (replica[0]) is the "new" IPA server and will migrate
data from the "old" one (master).

When manually running these tests in my own environment
they fail because the new server can't connect to the old
one because it doesn't have its IP address. This somehow
works in PR-CI. So add the master IP address on the replica
so it has a way to contact it.

Fixes: https://pagure.io/freeipa/issue/9884

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Sudhir Menon <sumenon@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-12-16 17:01:39 -03:00
Mohammad Rizwan 381e00e5db ipatests: allow dns zone overlap where dns is handled externaly
When dns is handles externaly and `--auto-reverse` is used to install
ipa-server, installation fails as
```
ipa: ERROR: stderr: Checking DNS domain testrelm.test., please wait ...
Checking DNS domain xx.xx.xx.in-addr.arpa., please wait ...
DNS zone xx.xx.xx.in-addr.arpa. already exists in DNS and is handled by server(s): ['xxx.', 'xxx.', 'xxx.', 'xxx.']
The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
```

Allow ipa-server install adding '--allow-zone-overlap' option for these
cases.

Signed-off-by: Mohammad Rizwan <myusuf@redhat.com>
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
2025-12-16 14:39:55 -03:00
Anuja More 386e9f37af ipatests: sysaccounts: add missing integration/webui/xmlrpc tests
Add comprehensive test coverage for system accounts:

Integration tests:
- Password management and privileged behavior
- Backup/restore scenarios (full, data-only, with various attributes)
- Replica deletion and SysAcctManagersDNs persistence

Web UI tests:
- CRUD operations, privileged flag, associations
- Enable/disable, password validation, negative cases

XML-RPC tests:
- Permission checks for normal users and Security Architects
- All CRUD operations and policy management

- Automated with Cursor+Claude

Related: https://pagure.io/freeipa/issue/9842

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: PRANAV THUBE <pthube@redhat.com>
Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: PRANAV THUBE <pthube@redhat.com>
2025-12-16 11:16:34 -03:00
Florence Blanc-Renaud c03f7eb2b9 ipatest: add an integration test for samba upgrade
When a trust was establish pre samba 4.23, the trust domain object
could contain ipanttrustattributes = 40 (LSA_TRUST_ATTRIBUTE_WITHIN_FOREST)
and winbind would fail to restart after an upgrade to samba 4.23.

Add a test simulating the situation and calling ipa-server-upgrade

Related: https://pagure.io/freeipa/issue/9892
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
2025-12-09 12:33:34 +01:00
Florence Blanc-Renaud b575e3dc39 Nightly test definitions: configure 4.13 branch
Configure the gating and nightly pipelines for ipa-4-13 branch

Fixes: IDM-3230
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2025-12-08 14:26:49 +01:00
Florence Blanc-Renaud 443aff6a0a ipatests: fix teardown of TestIpaCertFix
The test is moving the date in the future to simulate CA certificate
expiration, then uninstalls the server. If certmonger is working,
the uninstaller may fail with a Dbus Exception.

The test can be fixed with the same strategy as other tests changing
the date: stop certmonger and remove the tracking requests before
uninstallation.

Fixes: https://pagure.io/freeipa/issue/9888
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-12-02 16:38:02 +01:00
Florence Blanc-Renaud 9b9c71475b test_ipahealthcheck_dogtag_ca_connectivity_check: update expected msg
With the changes related to PKI API, a different error message is
returned when PKI is not reachable.
This breaks the test test_ipahealthcheck_dogtag_ca_connectivity_check.

Update the expected error message.
Fixes: https://pagure.io/freeipa/issue/9881
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-25 17:08:58 +01:00
Julien Rische 0aced73926 ipatests: fix kdcproxy tests against AD
In recent kdcproxy commit 1773f28eeea72ec6efcd433d3b66595c44d1253f, the
use of DNS discovery has been restricted to declared realms in order to
mitigate CVE-2025-59088. The present commit update the
TestHttpKdcProxy::test_ad_user_login_on_client_with_kdcproxy test to
take this change into account.

Signed-off-by: Julien Rische <jrische@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2025-11-21 16:26:19 +05:30
Rob Crittenden b7c66bf23b Revert "Temp commit"
This reverts commit a5132136cd.

It was merged on accident.
2025-11-20 15:57:54 -05:00
Sumedh Sidhaye a5132136cd Temp commit
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-20 15:42:45 -05:00
Sumedh Sidhaye e9a644feb0 Validate message to check if not a trust agent/controller Previously the check would return an empty SUCCESS message.
This is an update to the integration test since this involves a
beahviour change

Related PR: https://github.com/freeipa/freeipa-healthcheck/pull/367
Related JIRA: https://issues.redhat.com/browse/RHEL-112752

Signed-off-by: Sumedh Sidhaye <ssidhaye@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-20 15:42:45 -05:00
Florence Blanc-Renaud bcbc88dc4a temp_commit: revert to the version pre 0b521f7
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-20 15:40:37 -05:00
Florence Blanc-Renaud ca5510a08d ipatests: mark test_dnssec as xfail in fips mode
The test test_fips.py::TestInstallFIPS::test_dnssec is failing and
the issue is reported upstream at 9785.
Mark the test as xfail for now.

Related: https://pagure.io/freeipa/issue/9785
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-20 15:40:37 -05:00
Rob Crittenden 0b521f7d19 PR-CI: Run test_installation_TestInstallKeySizes in the nightlies
This tests the key and type installation arguments so the end
user can have some level of control over the type and key size
of some of the IPA keys.

Related: https://pagure.io/freeipa/issue/9738

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
2025-11-19 16:50:37 -05:00
Rob Crittenden 56620f400a Sort when comparing tuples in the xmlrpc tests
Two test were failing because the order within the result
keys changed. We shouldn't rely on order so sort the result
and compare that.

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
2025-11-19 16:50:37 -05:00
Rob Crittenden 1c107542cf Retrieve all cert profiles from the CA with --all
Normally IPA only returns the locally-stored certificate profiles.
In order for certmonger to request CA subsystem certificates using
cert_request we need the full set of profiles. Return them all
when --all is provided and the requesting user has permission.

Related: https://pagure.io/freeipa/issue/9738

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
2025-11-19 16:50:37 -05:00
Rob Crittenden 5d55b4efb2 Add config option for RSA key size for HTTP, DS, PKINIT, RA certs
A new command-line option was added, --key-type-size, to define
the type of key to generate and the size of the key, or equivalent.

Only rsa is supported currently but this can be expanded easily if
additional key types are added. Placeholders have been added for
ec and ml-dsa key types but they are not yet supported.

There is also a config plugin option to modify this value. It does
NOT modify any certificates already issued. Changing it will only
apply to new replicas added.

Related: https://pagure.io/freeipa/issue/9738

Also add a test to verify installation key sizes.

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
2025-11-19 16:50:37 -05:00
Aleksandr Sharov e0b9ad0ae0 Correctly recognize OID 2.5.4.97, organizationIdentifier as a subject/issuer DN of the CA certificate
OID 2.5.4.97 added to the ATTR_NAME_BY_OID list, and cainstance during
2-step installation is re-fetching CA certificate and re-parsing OIDs
based on the list. Example:

cert issuer: <Name(C=CZ,2.5.4.97=LLCCZ-123456789,O=Corp,CN=ROOT)>
DN(cert issuer): CN=ROOT,O=Corp,organizationIdentifier=LLCCZ-123456789,C=CZ

Fixes: https://pagure.io/freeipa/issue/9866

Signed-off-by: Aleksandr Sharov <asharov@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: David Hanina <dhanina@redhat.com>
2025-11-13 11:23:45 +05:30
Florence Blanc-Renaud d3909d8601 test_sudo: do not clean the cache for offline cache tests
The tests for offline caching should not clear SSSD cache
before shutting down the IPA server. Currently most of them
follow the same steps:
- create the rule
- clear the cache
- call run_as_sudo_user (which clears the cache)
- call list_sudo_commands (which clears the cache)
- stop the master
- call run_as_sudo_user with skip_sssd_cache_clear
- call list_sudo_commands with skip_sssd_cache_clear

The scenario is wrong as skip_sssd_cache_clear should also be
added on the calls before the master is stopped.

Fixes: https://pagure.io/freeipa/issue/9874
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: PRANAV THUBE <pthube@redhat.com>
2025-11-12 16:08:52 +01:00
Florence Blanc-Renaud 54f9e0f3e6 test_idp: use more recent keycloak server
Use Keycloak 26.4.4 and java 25 for the test setup.
The current versions (keycloak 26.1.0 and java-21) are not
working on Fedora 43.

Fixes: https://pagure.io/freeipa/issue/9833
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-11-12 15:33:41 +01:00
Florence Blanc-Renaud ec308a0358 PRCI: switch testing from f41 and f42 to f42 and f43
Fedora 43 is already available and Fedora 41 will be EOL
Wed 2025-11-19 according to Fedora schedule:
https://fedorapeople.org/groups/schedule/f-41/f-41-all-tasks.html

Start testing on fedora 42 and fedora 43.

Fixes: IDM-3229
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-11-12 15:33:41 +01:00
PRANAV THUBE 9441ebfced ipatests: Add new test cases with extended automount plugin attributes
Description: Porting the legacy bash ipa-automount testsuite
to upstream.

Related: https://issues.redhat.com/browse/IDM-3298

Signed-off-by: PRANAV THUBE <pthube@redhat.com>
Reviewed-By: David Hanina <dhanina@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-11-11 14:47:38 +01:00
Florence Blanc-Renaud 0ff5d6a388 TestHttpKdcProxy: use the snippet file for krb5 config
The test edits krb5 client configuration in /etc/krb5.conf in order
to use a KDC proxy, but the configuration has moved to the snippet
file /etc/krb5.conf.d/freeipa-realm.

Fix the file path.

Fixes: https://pagure.io/freeipa/issue/9871
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
2025-11-07 15:48:24 +01:00
PRANAV THUBE 3894ad88cb Port bash sudo tests.
Description: Porting the bash sudo testsuite to upstream (Including all
Negative & Positive test cases. Automated with Cursor+Claude

Related: https://issues.redhat.com/browse/IDM-2875
Signed-off-by: PRANAV THUBE <pthube@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2025-11-05 17:45:04 -05:00
Alexander Bokovoy 8c7427a2ba sysaccounts: add integration test
The integration test was created with the help of claude.ai by
providing the following prompt:

 >> given the design document in doc/designs/sysaccounts.md, write an
 >> integration test for sysaccounts module

Fixes: https://pagure.io/freeipa/issue/9842

Assisted-by: Claude <noreply@anthropic.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2025-11-03 17:18:05 -05:00
Alexander Bokovoy 24e4fd5c0c Add system accounts (sysaccounts)
Introduce support for LDAP-based system accounts by adding a dedicated
sysaccount plugin with full CLI commands, extending role membership to
include system accounts, and providing warnings for passsync
configuration updates across servers, along with corresponding
documentation and tests.

New Features:

    Implement system accounts LDAP object with CLI commands for add,
delete, modify, find, show, enable, and disable.

Enhancements:

    Extend role and baseldap plugins to support sysaccount membership
and manage passsync managers with a ServerSysacctMgrUpdateRequired
warning.

Documentation:

    Add a design document for system accounts and regenerate API docs
for sysaccount commands and role membership.

Tests:

    Update existing role and service plugin tests to cover sysaccount
membership.

Fixes: https://pagure.io/freeipa/issue/9842

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
Reviewed-By: Thomas Woerner <twoerner@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2025-11-03 17:18:05 -05:00
Anuja More f395e162e1 ipatests: Refactor and port trust functional SUDO tests.
- Test scenarios :
  - AD users running commands as root via external groups
  - AD users switching to other AD user accounts
  - IPA users running commands as AD users
  - Sudo rule disable/enable functionality
  - Command allow/deny restrictions
  - Access denial for users not in sudo rules
- Automated with Cursor+Claude

Related : https://pagure.io/freeipa/issue/9845

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: David Hanina <dhanina@redhat.com>
2025-11-03 16:01:12 -05:00
Florence Blanc-Renaud 3c5160bba4 Azure: fix the configuration issue
The command launching autogen.sh ends with \ and on fedora 43
this causes a build failure
checking build system type... Invalid configuration '\': machine '\-unknown' not recognized
configure: error: /bin/sh ./config.sub \ failed

Remove the trailing \

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-10-31 16:28:03 -04:00
Florence Blanc-Renaud a4ff2fcc18 Azure CI: Use F43
Fedora 43 is now available, switch azure CI to this version.

Fixes: IDM-3231
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-10-31 16:28:03 -04:00
Anuja More b38b681480 Revert "Temp commit"
This reverts commit b94848ccff.

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2025-10-28 11:54:44 -04:00
Rob Crittenden b94848ccff Temp commit
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-10-27 18:20:45 -03:00
Rob Crittenden 3b5caf9dbd Include the HSM token name when creating LWCAs
In order to generate the private key for a a LWCA (subca)
on an HSM the name of the subca needs to be the HSM token
name : name_of_subca, e.g. ipa_token:test.

This works fine now without any code changes but it requires
that admins always remember to include the prefix which is
unlikely (everyone makes mistakes). So do it for them if
an HSM is present and a token is not provided. We only support
one token at a time in IPA so for now this is sufficient.

One can also mix-and-match including the token and not.
For example you can run:

$ ipa ca-add test --subject cn=test
$ ipa ca-show ipa_token:test

It shouldn't be an issue if a lwca name contains a colon.

Fixes: https://pagure.io/freeipa/issue/9865

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Rafael Guterres Jeffman <rjeffman@redhat.com>
2025-10-27 18:20:45 -03:00
Florence Blanc-Renaud a0a8cbf7fa ipatests: mark test_scale_add_subca as xfail
The test is unstable because of PKI ticket 4677
Mark as xfail for now.

Related: https://github.com/dogtagpki/pki/issues/4677

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-10-17 17:22:08 +02:00
Florence Blanc-Renaud c7f07d451c Integration test: fix teardown of test_expiration_date_post_2038
The test moves the date in the future, performs checks and in the
teardown method uninstalls and moves the date back to the current time.

It often fails in the teardown part because certmonger is in the process
of renewing the expired certificates.
Apply the same strategy as other tests fiddling with the date:
stop certmonger and remove the tracking requests before uninstallation.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-10-17 17:22:08 +02:00
Florence Blanc-Renaud 78b4325677 test_cert: adapt the expect error message to PKI 11.7.0-5
The error message returned by ipa ca-show has changed with PKI 11.7.
Adapt the test to succeed with old and new versions.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-10-17 17:22:08 +02:00
Florence Blanc-Renaud 7f8841cd8b Revert "Tests xmlrpc: mark xfail tests requesting cert with subca"
This reverts commit db188b9ad8.
PKI 11.7.0-3 in fedora 42 fixes the issue with subca cert issuance.

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-10-17 17:22:08 +02:00
Florence Blanc-Renaud dd8b7214b4 PRCI tests: update vagrant image with latest PKI / certmonger package
Fedora 42 now ships PKI 11.7.0-5 and certmonger 0.79.21-1.
Update the vagrant image to 0.0.9 in order to pull the new versions.

Related: IDM-3437
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-10-17 17:22:08 +02:00
Aleksandr Sharov d9a2a6abcd Allow ipa tool to force specific server
Fixes: https://pagure.io/freeipa/issue/9744
Signed-off-by: Aleksandr Sharov <asharov@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: David Hanina <dhanina@redhat.com>
2025-10-14 08:20:23 +02:00
PRANAV THUBE 89fb6ad49a Extended eDNS testsuite with Relaxed policy testcases. 1. Relaxed policy without certs and including --no-dnssec-validation 2. Relaxed policy with external CA and including --no-dnssec-validation
Automated with Cursor+Claude
Related: https://issues.redhat.com/browse/IDM-2894

Signed-off-by: PRANAV THUBE <pthube@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Antonio Torres <antorres@redhat.com>
2025-10-10 11:48:12 +02:00
Anuja More 14d7a5b3b6 ipatests: Refactor and port trust functional HBAC tests.
- Tests to cover both root domain and subdomain users:
 - Test that adding AD users/groups without the external group to
   HBAC rules fails.
 - Test HBAC rule denies SSH access for AD users.
 - Test HBAC rule allows SSH access for AD users in external group.
 - Test HBAC rule denies sudo access for AD users when rule doesn't
   include them.
 - Test HBAC rule allows sudo access for AD users in external group.

Related : https://pagure.io/freeipa/issue/9845

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2025-10-08 09:29:28 +02:00
Rob Crittenden 892fea881a Add support for libpwpolicy credit to password policy
We already have libpwquality plumbed in. The ask here was
to support the quality credits as well.

There are four credits: digits, uppers, lowers and others

These either count complexity towards satisfying the minimum
length or set the minimum number of a type allowed.

If any of the four credits is configured then it will cause
the password policy plugin to go through the libpwquality.

Reminder that libpwquality sets its own min password length
floor that should be overridden already.

If min_classes is set as well then that is still enforced.

Fixes: https://pagure.io/freeipa/issue/9835

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: David Hanina <dhanina@redhat.com>
2025-10-03 15:29:40 -04:00
Florence Blanc-Renaud db4ff37792 ipatests: fix TestIpaClientAutomountDiscovery
When executed in IDM-CI the test fails because the file
/etc/resolv.conf is overwritten by Networkmanager.
Use the methods provided by the tasks module to modify
resolver configuration.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Anuja More <amore@redhat.com>
2025-10-03 16:06:08 +02:00
Florence Blanc-Renaud db188b9ad8 Tests xmlrpc: mark xfail tests requesting cert with subca
With PKI 11.7, requesting a cert with a subca fails.
Mark the tests as xfail for now.

Related: RHEL-108293
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: David Hanina <dhanina@redhat.com>
2025-09-30 17:02:13 +02:00
Florence Blanc-Renaud 96a5e706d1 ipatests: extend test for unique krbcanonicalname
Add a test ensuring that root@REALM cannot be added as
krbcanonicalname

Add a test for PAC enforcement:
try to access a service using a TGT obtained without PAC.
Should fail as PAC is now enforced.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
2025-09-30 10:22:51 +02:00
David Hanina 9b7fc311d3 Add modern webui build
Adds modern webui as a submodule. Contains changes in the specfile to
include the `dist` folder of modern webui.
Edits Apache httpd template to allow routing to modern webui, however
old ui is still the default.

Requires https://github.com/freeipa/freeipa-webui/pull/695 to be merged.

Signed-off-by: David Hanina <dhanina@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2025-09-25 17:07:35 +02:00
Florence Blanc-Renaud 0b796ce762 ipatests: fix TestIPAMigratewithBackupRestore setup
The test is installing a first master with DNS enabled, then a
second master (same domain name, with DNS enabled) in order to
perform migration.
Add --allow-zone-overlap to the 2nd master installation.

Fixes: https://pagure.io/freeipa/issue/9858
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Sudhir Menon <sumenon@redhat.com>
2025-09-22 18:14:21 +02:00