-
Notifications
You must be signed in to change notification settings - Fork 258
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
Configure how SSSD should access RootDSE. #7846
Conversation
One test is failing ( |
blocked by #7854 |
src/man/sssd-ldap.5.xml
Outdated
</itemizedlist> | ||
Note that when using the "anonymous" option, SSSD | ||
may attempt to read RootDSE after authentication | ||
if anonymous access fails. |
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.
I don't quite understand this statement. Can you elaborate?
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.
Is it related to the comment in the code below?
/* We did not read rootDSE during unauthenticated bind becase
* it is unaccessible for anonymous user or because
* ldap_read_rootdse is set to "authenticated"
* Let's try to read it now */
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.
Yes it is related. The "anonymous" option basically enables current/original SSSD behavior. In this mode SSSD tries to read RootDSE anonymously but if that fails SSSD attempts to read it after authentication once again.
Failures are not critical - we can proceed without reading RootDSE if everything (like e. g. authentication mechanism) is set correctly manually in sssd.conf.
This option allows us to skip the attempts that would fail anyway due to LDAP server restrictions/custom setup and get rid of annoying error messages in the log in such environment.
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 clarification. IMO the wording can be improved a bit. Something like
By default, using the "anonymous" option, SSSD tries to read RootDSE anonymously. If this fails SSSD retries the attempt with authentication.
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, updated.
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.
Ack, thank you.
Re: release note: ":config:The 'ldap_read_rootdse' option allows ..." -- maybe better "New 'ldap_read_rootdse' option allows ..."? |
Updated |
:config:New 'ldap_read_rootdse' option allows you to specify how SSSD will read RootDSE from the LDAP server. Allowed values are "anonymous", "authenticated" and "never" Resolves: SSSD#6665
rebased, let's wait for CI |
:config:The 'ldap_read_rootdse' option allows you to specify how SSSD will read RootDSE from the LDAP server. Allowed values are "anonymous", "authenticated" and "never"