[go: nahoru, domu]

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

Is there a way to change which attribute jupyterhub user name is selected from? #108

Open
myaspm opened this issue Nov 1, 2018 · 1 comment

Comments

@myaspm
Copy link
myaspm commented Nov 1, 2018

Hi,

This question may seem a little vague so here is a little explanation:

My config goes as:

c.LDAPAuthenticator.bind_dn_template = "cn={username},ou=people,dc=company,dc=com"
c.LDAPAuthenticator.lookup_dn = True
c.LDAPAuthenticator.server_address = host
c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
c.LDAPAuthenticator.user_attribute = 'uid'
c.LDAPAuthenticator.lookup_dn_search_user = 'cn=admin,dc=company,dc=com'
c.LDAPAuthenticator.user_search_base = 'ou=people,dc=company,dc=com'
c.LDAPAuthenticator.lookup_dn_search_filter = '({login_attr}={login})'

This binds and gets the user correctly but my LDAP objects have dn's as such :

cn=FirstName LastName, ou=people,dc=company,dc=com

As you can see cn attribute has space or spaces inside it and when i want to auto create these users, i get errors because spaces and also some cn's might have special Turkish letters inside them such as "ö,çi,ş" :( I want the 'uid' attribute of the LDAP object to be my Jupyterhub username. Is there a way to do this or am i doing something wrong?

@DamienHarVeris
Copy link

Hello,

Try this:
c.LDAPAuthenticator.use_lookup_dn_username = False

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