Skip to content
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

Docs updates, and a few tweaks to the allow config #286

Merged
merged 5 commits into from
Oct 4, 2024

Conversation

manics
Copy link
Member

@manics manics commented Sep 28, 2024

More details in commit messages.

@@ -264,7 +266,7 @@ def _ensure_allowed_groups_requirements(self, change):
c.LDAPAuthenticator.lookup_dn_search_password = 'secret'
c.LDAPAuthenticator.user_search_base = 'ou=people,dc=wikimedia,dc=org'
c.LDAPAuthenticator.user_attribute = 'uid'
c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'cn'
c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'sAMAccountName'
Copy link
Member Author

@manics manics Sep 28, 2024

Choose a reason for hiding this comment

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

I presume this is meant to be an AD example, and this should never be cn? Or should it be uid?

)
username = username[0]
Copy link
Member Author

Choose a reason for hiding this comment

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

When is it acceptable to return just the first match?

# if all groups are needed (e.g. for manage_groups)
# we should keep fetching membership
break
# Returned in auth_state, so fetch the full list
Copy link
Member Author

Choose a reason for hiding this comment

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

An alternative, if we don't want to iterate through all groups, is to change the property to is_in_allowed_groups: true|false

@manics manics merged commit 9b11ac5 into jupyterhub:main Oct 4, 2024
7 checks passed
@manics manics deleted the review-updates branch October 4, 2024 13:57
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.

2 participants