Skip to content

[autobackport: sssd-2-9] Tests: add ldap_sudo_search_base warning test#8963

Merged
jakub-vavra-cz merged 1 commit into
SSSD:sssd-2-9from
sssd-bot:SSSD-sssd-backport-pr8902-to-sssd-2-9
Jul 17, 2026
Merged

[autobackport: sssd-2-9] Tests: add ldap_sudo_search_base warning test#8963
jakub-vavra-cz merged 1 commit into
SSSD:sssd-2-9from
sssd-bot:SSSD-sssd-backport-pr8902-to-sssd-2-9

Conversation

@sssd-bot

Copy link
Copy Markdown
Contributor

This is an automatic backport of PR#8902 Tests: add ldap_sudo_search_base warning test to branch sssd-2-9, created by @spoore1.

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-pr8902-to-sssd-2-9
git checkout SSSD-sssd-backport-pr8902-to-sssd-2-9
git push sssd-bot SSSD-sssd-backport-pr8902-to-sssd-2-9 --force

Original commits
4b915fc - Tests: add ldap_sudo_search_base warning test

Backported commits

  • b681cd5 - Tests: add ldap_sudo_search_base warning test

Original Pull Request Body

When ldap_sudo_search_base is not set, SSSD defaults to searching the entire directory tree for sudoRole objects. In this case, we expect a warning message to be logged.

Assisted-By: Claude Code (Sonnet 4.6 (1M context))

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new system test test_sudo__ldap_sudo_search_base_not_set_emits_warning to verify that SSSD emits a security warning in both the domain debug log and the system journal when ldap_sudo_search_base is not configured. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

When ldap_sudo_search_base is not set, SSSD defaults to searching the
entire directory tree for sudoRole objects.  In this case, we expect a
warning message to be logged.

Assisted-By: Claude Code (Sonnet 4.6 (1M context))
Reviewed-by: Jakub Vávra <jvavra@redhat.com>
(cherry picked from commit 4b915fc)
@sssd-bot

Copy link
Copy Markdown
Contributor Author

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


🟢 CodeQL (success)
🟢 rpm-build:centos-stream-9-x86_64:upstream (success)
🟢 testing-farm:centos-stream-9-x86_64:upstream (success)
🟢 ci / prepare (success)
🟢 ci / system (centos-9) (success)
🟢 Static code analysis / codeql (success)
🟢 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-pr8902-to-sssd-2-9 branch from b681cd5 to bbd606f Compare July 17, 2026 07:20
@jakub-vavra-cz
jakub-vavra-cz merged commit faf321c into SSSD:sssd-2-9 Jul 17, 2026
6 of 8 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