Skip to content

Tests: LDAP+KRB5 krb_misc tests#8612

Merged
spoore1 merged 1 commit intoSSSD:masterfrom
madhuriupadhye:ldap_krb3
Apr 27, 2026
Merged

Tests: LDAP+KRB5 krb_misc tests#8612
spoore1 merged 1 commit intoSSSD:masterfrom
madhuriupadhye:ldap_krb3

Conversation

@madhuriupadhye
Copy link
Copy Markdown
Contributor

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 several new system tests for Kerberos authentication in SSSD, covering scenarios such as unresolvable kpasswd servers, authentication stability when processes with high UIDs (specifically -1) are running, and password changes via SSH. The review feedback suggests improving the robustness of process cleanup by using specific PIDs instead of pkill and recommends truncating log files before performing assertions to ensure test isolation and accuracy.

Comment thread src/tests/system/tests/test_ldap_krb5.py Outdated
Comment thread src/tests/system/tests/test_ldap_krb5.py
@madhuriupadhye madhuriupadhye force-pushed the ldap_krb3 branch 6 times, most recently from d712a93 to 440eba8 Compare April 20, 2026 09:59
@madhuriupadhye
Copy link
Copy Markdown
Contributor Author

/packit test

@madhuriupadhye
Copy link
Copy Markdown
Contributor Author

/test-system-scoped

1 similar comment
@madhuriupadhye
Copy link
Copy Markdown
Contributor Author

/test-system-scoped

Comment thread src/tests/system/tests/test_ldap_krb5.py Outdated
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

Copy link
Copy Markdown
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

This looks good. Most of my comments/questions/suggestions are small things.

Comment thread src/tests/system/tests/test_ldap_krb5.py Outdated
Comment thread src/tests/system/tests/test_ldap_krb5.py Outdated
Comment thread src/tests/system/tests/test_ldap_krb5.py Outdated
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
Copy link
Copy Markdown
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the updates.

@spoore1
Copy link
Copy Markdown
Contributor

spoore1 commented Apr 27, 2026

FYI, I removed accepted label to get a full ci run in the accepted message.

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.

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Reviewed-by: Alejandro López <allopez@redhat.com>
Reviewed-by: Scott Poore <spoore@redhat.com>
@sssd-bot
Copy link
Copy Markdown
Contributor

The pull request was accepted by @spoore1 with the following PR CI status:


🟢 CodeQL (success)
🟢 osh-diff-scan:fedora-rawhide-x86_64:upstream (success)
🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟢 rpm-build:fedora-44-x86_64:upstream (success)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 ci / intgcheck (centos-10) (success)
🟢 ci / intgcheck (fedora-42) (success)
🟢 ci / intgcheck (fedora-43) (success)
🟢 ci / intgcheck (fedora-44) (success)
🟢 ci / intgcheck (fedora-45) (success)
🟢 ci / prepare (success)
🟢 ci / system (centos-10) (success)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🟢 ci / system (fedora-44) (success)
🟢 ci / system (fedora-45) (success)
➖ Coverity scan / coverity (skipped)
🟢 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.

@spoore1 spoore1 merged commit 20eeac6 into SSSD:master Apr 27, 2026
15 checks passed
sssd-bot pushed a commit to madhuriupadhye/sssd that referenced this pull request Apr 28, 2026
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.

Backporting of SSSD#8612

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Reviewed-by: Scott Poore <spoore@redhat.com>
madhuriupadhye added a commit to madhuriupadhye/sssd that referenced this pull request Apr 30, 2026
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.

Backporting of SSSD#8612

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
madhuriupadhye added a commit to madhuriupadhye/sssd that referenced this pull request Apr 30, 2026
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.

Backporting of SSSD#8612

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants