Closed runderko closed 1 month ago
I have the same problem. I found that it was due to the allowed_groups testing the "memberOf" attribute, as the LDAP server only has the memberUid option, and the attempted search of LDAP3 on memberOf raises an exception now. This either needs a try.. except in the LDAP administrator, or the ability to specify which of the three group searches to try.
I've went for a close here and opened #263 to track what @euanmacinnes said above with needing to handle a raised error.
Bug description
Unable to restrict access to users that are a member of specific groups in LDAP authenticated through Jupyterhub
Expected behaviour
Restricted access to members of the group specified in basedn
Actual behaviour
ldap users other than group members are able to access
How to reproduce
I am able to reproduce the issue at my end with the below steps.
For eg: Created a OU (bigdata) under DC [COMPUTE.INTERNAL] and added the below users and groups.
a. BigdataAdmin => Group1 b. Developer => Group2 c. hadoopadmin => User member of BigdataAdmin group d. ldapuser => User member of Developer group.
For eg:
..... Also tried to setup configuration - LDAPAuthenticator.allowed_groups, as documented in this blogs https://github.com/jupyterhub/ldapauthenticator I am unsuccessful to configure restricting access to specific LDAP groups. Is this a bug with LDAP group integration in Jupyterhub. Please suggest ....
Your personal set up