I cannot authenticate with this plugin. Is there any error of my LDAP config?
JupyterHub and this plugin are both the recent stable version.
c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'
c.LDAPAuthenticator.server_address = '***.***.***.***'
c.LDAPAuthenticator.bind_dn_template = ['uid={username},app=100000,cn=apps,dc=***.***.***']
c.LDAPAuthenticator.lookup_dn = True
c.LDAPAuthenticator.lookup_dn_search_user = 'uid=admin, cn=users, dc=***.***.***'
c.LDAPAuthenticator.lookup_dn_search_password = '********'
c.LDAPAuthenticator.user_search_base = 'app=100000,cn=apps,dc=***.***.***'
c.LDAPAuthenticator.user_attribute = 'uid'
c.LDAPAuthenticator.lookup_dn_user_dn_attribute = 'uid'
What output do you see in the logs?
@dhirschfeld Could you tell me where the log file is, please?
It's the output from the jupyterhub process - i.e. if you run:
jupyterhub --port=80 --debug
...the output from that command will also show debug information from your authenticator class
The log says: PAM Authentication failed (1993@::ffff:10.2.8.19): [PAM Error 3] Error in service module 1993 is the LDAP uid. Thank you!
Sorry, I'm on Windows (and not an LDAP expert) so that doesn't mean much to me.
I'd suggest re-posting the logs with a lot more context (i.e. the entire log output, not just one line) and hopefully an expert / linux user may be able to see what's wrong.
When you start jupyterhub on the command line, include the --debug option and you will get logs appearing in the terminal.
@tedstrauss I run the command: jupyterhub --port=80 --debug, and when I logged with a LDAP user, it says: The log says: PAM Authentication failed (1993@::ffff:10.2.8.19): [PAM Error 3] Error in service module 1993 is the LDAP uid.