Skip to content

[autobackport: sssd-2-12] Ad stig 1 - #9122

Merged
jakub-vavra-cz merged 4 commits into
SSSD:sssd-2-12from
sssd-bot:SSSD-sssd-backport-pr9115-to-sssd-2-12
Aug 24, 2026
Merged

jakub-vavra-cz merged 4 commits into
SSSD:sssd-2-12from
sssd-bot:SSSD-sssd-backport-pr9115-to-sssd-2-12

Conversation

@sssd-bot

Copy link
Copy Markdown
Contributor

This is an automatic backport of PR#9115 Ad stig 1 to branch sssd-2-12, created by @madhuriupadhye.

Please make sure this backport is correct.

Note

The commits were cherry-picked without conflicts.

You can push changes to this pull request

git remote add sssd-bot git@github.com:sssd-bot/sssd.git
git fetch sssd-bot refs/heads/SSSD-sssd-backport-pr9115-to-sssd-2-12
git checkout SSSD-sssd-backport-pr9115-to-sssd-2-12
git push sssd-bot SSSD-sssd-backport-pr9115-to-sssd-2-12 --force

Original commits
6dd9bf2 - Tests: Fix AD work on STIG-hardened systems
5340857 - Tests: Fix AD tests on STIG-hardened systems
bf003fc - Fix STIG fixture to handle sshd drop-in config files
cf38737 - Enable AES Kerberos encryption on AD for FIPS:STIG compatibility

Backported commits

  • 616c192 - Tests: Fix AD work on STIG-hardened systems
  • 85704af - Tests: Fix AD tests on STIG-hardened systems
  • 8791330 - Fix STIG fixture to handle sshd drop-in config files
  • 4cc622c - Enable AES Kerberos encryption on AD for FIPS:STIG compatibility

Original Pull Request Body

@jakub-vavra-cz jakub-vavra-cz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanly applied backport.

- Replace `auth_from_client` (SSH password auth) with `su_success` in
  `test_0010_bz1527662` to fix test failure on STIG-hardened RHEL systems
  where SSH password authentication is disabled.

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit 6dd9bf2)
Add enable_sshd_password_auth fixture that temporarily enables
PasswordAuthentication in sshd on STIG systems where it is disabled.
No-op on non-STIG systems. Applied to 14 tests across
test_adparameters_ported.py, test_range_retrieval.py,
test_login_attr.py, and test_ad_misc.py that use SSH password auth.

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit 5340857)
Fix enable_sshd_password_auth fixture to check and modify sshd drop-in files under /etc/ssh/sshd_config.d/ in addition to the main sshd_config. On RHEL 9.9
  STIG-hardened systems, PasswordAuthentication no is set in a drop-in file, not the main config, causing the fixture to silently no-op and all 11 SSH-based tests to
  fail.
  - Add raiseonerr=False to the adleave teardown cp command to prevent 13 spurious errors when sssd.conf.adjoin was never created due to earlier test failures

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit bf003fc)
On RHEL 9.x and some tests from 10.x with FIPS:STIG crypto policy, realm join fails because the AD
server does not have AES encryption enabled by default. This adds a session
fixture to configure AES-128/AES-256 on the AD server at test startup.

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit cf38737)
@sssd-bot

Copy link
Copy Markdown
Contributor Author

The pull request was accepted by @jakub-vavra-cz with the following PR CI status:


🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟡 testing-farm:centos-stream-10-x86_64:upstream (in_progress)
🟢 Build / freebsd (success)
🟡 Build / make-distcheck (in_progress)
🟡 ci / intgcheck (centos-10) (in_progress)
🟡 ci / intgcheck (fedora-43) (in_progress)
🟢 ci / prepare (success)
QUEUED ci / system (centos-10) (queued)
QUEUED ci / system (fedora-43) (queued)
🟡 Static code analysis / codeql (in_progress)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

@sssd-bot
sssd-bot force-pushed the SSSD-sssd-backport-pr9115-to-sssd-2-12 branch from 4cc622c to 29ae6ef Compare August 24, 2026 12:10
@jakub-vavra-cz
jakub-vavra-cz merged commit 5d1e8ad into SSSD:sssd-2-12 Aug 24, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants