-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdap: add search_bases option to groups_by_user_send() #7145
Closed
sumit-bose
wants to merge
2
commits into
SSSD:master
from
sumit-bose:gpo_host_groups_search_base_fix
Closed
sdap: add search_bases option to groups_by_user_send() #7145
sumit-bose
wants to merge
2
commits into
SSSD:master
from
sumit-bose:gpo_host_groups_search_base_fix
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sumit-bose
changed the title
pam: fix SC auth with multiple certs and missing login name
sdap: add search_bases option to groups_by_user_send()
Jan 24, 2024
IIUC, this is an addition to #7107 |
sumit-bose
force-pushed
the
gpo_host_groups_search_base_fix
branch
2 times, most recently
from
January 25, 2024 13:19
9dc9c38
to
2352d02
Compare
aplopez
reviewed
Jan 29, 2024
thalman
reviewed
Jan 30, 2024
AD handles users and computer objects very similar and so does SSSD's GPO code when lookup up the host's group-memberships. But users and computers might be stored in different sub-tree of the AD LDAP tree and if a dedicated user search base is given with the ldap_user_search_base option in sssd.conf the host object might be in a different sub-tree. To make sure the host can still be found this patch uses the base DN of the LDAP tree when searching for hosts in the GPO code. Resolves: SSSD#5708
sumit-bose
force-pushed
the
gpo_host_groups_search_base_fix
branch
from
February 9, 2024 09:19
2352d02
to
a7502fc
Compare
Looks good to me. Thank you the changes. |
aplopez
approved these changes
Feb 9, 2024
thalman
reviewed
Feb 9, 2024
The naming_context could be a more reliable source than basedn for the actual base DN because basedn is set very early from the domain name given in sssd.conf. Although it is recommended to use the fully qualified DNS domain name here it is not required. As a result basedn might not reflect the actual based DN of the LDAP server. Also pure LDAP server (i.e. not AD or FreeIPA) might use different schemes to set the base DN which will not be based on the DNS domain of the LDAP server. Resolves: SSSD#5708
sumit-bose
force-pushed
the
gpo_host_groups_search_base_fix
branch
from
February 9, 2024 14:01
a7502fc
to
d7576f0
Compare
thalman
approved these changes
Feb 9, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update, ACK
Pushed PR: #7145
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
AD handles users and computer objects very similar and so does SSSD's
GPO code when lookup up the host's group-memberships. But users and
computers might be stored in different sub-tree of the AD LDAP tree and
if a dedicated user search base is given with the ldap_user_search_base
option in sssd.conf the host object might be in a different sub-tree. To
make sure the host can still be found this patch uses the base DN of
the LDAP tree when searching for hosts in the GPO code.
Resolves: #5708