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

Users restriction as allowed_groups is not working #145

Closed
kadafax opened this issue Nov 15, 2019 · 1 comment
Closed

Users restriction as allowed_groups is not working #145

kadafax opened this issue Nov 15, 2019 · 1 comment

Comments

@kadafax
Copy link

kadafax commented Nov 15, 2019

Hi,

Using a freshly installed "the-littlest-jupyterhub" and this plugin, I am able to log against my LDAP (openldap) but can't discriminate users based on their membership of a group because in my directory the users are added to a group with the attribute memberUID and it's not working with this plugin who is searching for other attributes.

So my question is, how can I discriminate users based on another attribute in their LDAP account. I'm thinking of narrowing the user search with a filter like (&(uid=username)(someAttribute=jupyter)) but can't figure how to achieve this.

Thanks for any help. Below my config.yaml:

users:
  admin:
  - aLocalUser
  - aLDAPUser
https:
  enabled: true
  tls:
    key: /etc/mycerts/myserver_myOrg_fr.key
    cert: /etc/mycerts/myserver_myOrg_fr.crt
auth:
  LDAPAuthenticator:
    server_address: my.ldap.server
    bind_dn_template: uid={username},ou=people,dc=myOrg,dc=org
    use_ssl: true
    server_port: 636
  type: ldapauthenticator.LDAPAuthenticator
@consideRatio
Copy link
Member

I think I don't understand LDAP stuff well enough, in turn to understand the question well enough, in turn to decide on close this issue or find an action point related to it.

I'll go for a close not feeling confident as its old, sorry for the super late response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants