Skip to content

Test bind_dn_template more thoroughly #290

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

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

manics
Copy link
Member

@manics manics commented Oct 29, 2024

lookup_dn=True in

c.LDAPAuthenticator.lookup_dn = True

meant the bug fixed in #289 wasn't tested.

@manics manics added the ci label Oct 29, 2024
@manics manics mentioned this pull request Oct 29, 2024
`lookup_dn` needs to be True here, because the `{username}` expansion in the `bind_dn_template` string will without it expand to fry as a login name, but needs to be expanded to `Philip J. Fry` as that is the `fry` user's cn attribute, and only such expanded dn template will successfully be found.
@consideRatio consideRatio merged commit 0af43b8 into jupyterhub:main Oct 31, 2024
7 checks passed
@manics manics deleted the config-dict branch October 31, 2024 14:24
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.

2 participants