Skip to content

[autobackport: sssd-2-12] Tests: LDAP+KRB5 krb_misc tests#8652

Open
sssd-bot wants to merge 1 commit intoSSSD:sssd-2-12from
sssd-bot:SSSD-sssd-backport-pr8612-to-sssd-2-12
Open

[autobackport: sssd-2-12] Tests: LDAP+KRB5 krb_misc tests#8652
sssd-bot wants to merge 1 commit intoSSSD:sssd-2-12from
sssd-bot:SSSD-sssd-backport-pr8612-to-sssd-2-12

Conversation

@sssd-bot
Copy link
Copy Markdown
Contributor

This is an automatic backport of PR#8612 Tests: LDAP+KRB5 krb_misc tests 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-pr8612-to-sssd-2-12
git checkout SSSD-sssd-backport-pr8612-to-sssd-2-12
git push sssd-bot SSSD-sssd-backport-pr8612-to-sssd-2-12 --force

Original commits
20eeac6 - Tests: LDAP+KRB5 krb_misc tests

Backported commits

  • 42021f4 - Tests: LDAP+KRB5 krb_misc tests

Original Pull Request Body

Ported following test case:

  • kpasswd: BZ 847039: login works when krb5_kpasswd is unresolvable (kpasswd not needed for auth).
  • high UID: BZ 798655: auth and logs stay clean with a setuid(-1) helper process running.
  • password change: GH 677: SSH passwd with chpass_provider=krb5 logs initial auth in krb5_child.log.

Copy link
Copy Markdown

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

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 introduces new system tests for SSSD Kerberos functionality, covering scenarios such as unresolvable kpasswd servers, handling of processes with invalid UIDs, and password changes via SSH. The review feedback identifies a technical flaw in the C helper code where setuid(-1) acts as a no-op on Linux, potentially invalidating the test for BZ 798655. Additionally, it is recommended to explicitly set the SSSD debug level to ensure that the log messages being asserted in the tests are actually generated.

Comment thread src/tests/system/tests/test_ldap_krb5.py Outdated
Comment thread src/tests/system/tests/test_ldap_krb5.py
Comment thread src/tests/system/tests/test_ldap_krb5.py
@madhuriupadhye madhuriupadhye force-pushed the SSSD-sssd-backport-pr8612-to-sssd-2-12 branch 2 times, most recently from 348cac5 to c5f5092 Compare April 29, 2026 11:59
Comment thread src/tests/system/tests/test_ldap_krb5.py
Ported following test case:

- kpasswd: BZ 847039: login works when krb5_kpasswd is
  unresolvable (kpasswd not needed for auth).
- high UID: BZ 798655: auth and logs stay clean with a
  setuid(-2) helper process running.
- password change: GH 677: SSH passwd with
  chpass_provider=krb5 logs initial auth in krb5_child.log.

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
@madhuriupadhye madhuriupadhye force-pushed the SSSD-sssd-backport-pr8612-to-sssd-2-12 branch from c5f5092 to a6e6080 Compare April 30, 2026 13:57
Copy link
Copy Markdown
Contributor

@aplopez aplopez left a comment

Choose a reason for hiding this comment

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

LGTM

I think these new changes need to be ported to the other versions, in particular the -2.

@madhuriupadhye
Copy link
Copy Markdown
Contributor

madhuriupadhye commented Apr 30, 2026

LGTM

I think these new changes need to be ported to the other versions, in particular the -2.

This is manually raised PR, #8655
Once @danlavu approves it, will do same changes to this branch, and will raise the PR for master branch with latest changes.

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.

5 participants