[autobackport: sssd-2-9] Fix for test_access_control_simple__permits_user_login_based_on_group samba failure#8293
Conversation
There was a problem hiding this comment.
Code Review
This pull request backports a fix for an issue where group names in SID format were not being resolved correctly, causing test failures with Samba. The changes introduce a new utility function string_begins_with() to detect SID-formatted names and adjust the group processing logic in simple_access_check. While the overall logic seems correct, I've found a critical issue in the new string_begins_with() function where it doesn't handle a NULL prefix, which could lead to a crash. I've also pointed out a missing test case for this scenario.
|
|
Dropped. |
7106a0e to
989129e
Compare
sumit-bose
left a comment
There was a problem hiding this comment.
Hi,
backported patches are looking like to original ones, ACK.
bye,
Sumit
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit b0146ae)
After changes from 'Dont store GID for non-posix groups', the simple access provider was not identifying group with names in SID format as group that needs to be resolved because they are no longer stored temporarily as non-POSIX. Add code to check for, and resolve any group names which are SIDs returned from initgroups (AD provider). Reviewed-by: Alexey Tikhonov <atikhono@redhat.com> Reviewed-by: Sumit Bose <sbose@redhat.com> (cherry picked from commit 358a708)
|
The pull request was accepted by @alexey-tikhonov with the following PR CI status: 🟢 CodeQL (success) There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging. |
989129e to
d32f274
Compare
This is an automatic backport of PR#8263 Fix for test_access_control_simple__permits_user_login_based_on_group samba failure to branch sssd-2-9, created by @justin-stephenson.
Please make sure this backport is correct.
Note
The commits were cherry-picked without conflicts.
You can push changes to this pull request
Original commits
b0146ae - util: Add string_begins_with() helper
358a708 - simple: Resolve group names in SID format
4482fac - tests: Remove preferred topology from simple access test
Backported commits
Original Pull Request Body