-
Notifications
You must be signed in to change notification settings - Fork 178
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
Allow users to configure group search filter and attributes (group_search_filter
and group_attributes
config)
#168
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
@@ -100,3 +100,14 @@ async def test_ldap_auth_state_attributes(authenticator): | |||
) | |||
assert authorized["name"] == "fry" | |||
assert authorized["auth_state"] == {"employeeType": ["Delivery boy"]} | |||
|
|||
async def test_ldap_auth_state_attributes2(authenticator): | |||
authenticator.group_filter = "(cn=ship_crew)" |
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.
Played with this value, with the Docker container (same used in CI), causing it to fail with different values. Also tested locally with a different docker image that contains a more restrict schema in OpenLDAP, allowing only member
in the search.
31bdcf5
to
51f6a39
Compare
51f6a39
to
1c42a39
Compare
Bumping this PR, any reason this hasn't been merged? This would fix the issues we've been having getting this configured for my organization's LDAP server. |
👍 Can this be merged, waiting for this option to fix group restriction using LDAP. |
@manics FYI ^ |
Hi It's been more than a year, wonder if there is some blockers to fix this? |
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.
@kinow do you think this is good to merge still btw? |
group_filter
and group_attributes
config)
I think so! Let me just address your suggestion, and rebase it. |
8e218e8
to
a797922
Compare
Will look at the broken tests later |
2004164
to
32d9910
Compare
32d9910
to
1793cc2
Compare
The test failures are unrelated and tracked by #246, as long as the jupyterhub 4 tests pass we are good! |
group_filter
and group_attributes
config)group_search_filter
and group_attributes
config)
Thank you @kinow!!! |
Thanks @consideRatio !! |
This change allowed me to connect to another server that was rejecting the connection due to only
member
being in its schema. Other attributes caused it to raise an exception, failing the authentication.Closes #62
Closes #133
Related to #145