ldapauthenticator icon indicating copy to clipboard operation
ldapauthenticator copied to clipboard

I cannot authenticate with this plugin. Is there any error of my LDAP config?

Open fishfree opened this issue 7 years ago • 7 comments

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'

fishfree avatar Jun 19 '18 02:06 fishfree

What output do you see in the logs?

dhirschfeld avatar Jun 20 '18 10:06 dhirschfeld

@dhirschfeld Could you tell me where the log file is, please?

fishfree avatar Jun 27 '18 05:06 fishfree

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

dhirschfeld avatar Jun 27 '18 05:06 dhirschfeld

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!

fishfree avatar Jul 04 '18 04:07 fishfree

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.

dhirschfeld avatar Jul 04 '18 05:07 dhirschfeld

When you start jupyterhub on the command line, include the --debug option and you will get logs appearing in the terminal.

ted-strauss-K1 avatar Aug 22 '18 18:08 ted-strauss-K1

@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.

fishfree avatar Aug 30 '18 22:08 fishfree