I’m trying to get AD authentication working for JupyterHub. This is what my jupyterhub_config.py file looks like…
c.JupyterHub.authenticator_class=‘ldapauthenticator.LDAPAuthenticator’
c.LDAPAuthenticator.server_address=‘AD.CORP.COM’
c.LDAPAuthenticator.server_port = 389
c.LDAPAuthenticator.lookup_dn = True
c.LDAPAuthenticator.lookup_dn_search_filter = ‘({login_attr}={login})’
c.LDAPAuthenticator.user_search_base = ‘dc=ad,dc=corp,dc=com’
c.LDAPAuthenticator.user_attribute = ‘sAMAccountName’
c.LDAPAuthenticator.lookup_dn_user_dn_attribute = ‘cn’
c.LDAPAuthenticator.escape_userdn=True
c.LDAPAuthenticator.bind_dn_template="{username}"
When I start my JupyterHub using “jupyterhub -f /etc/jupyterhub/jupyterhub_config.py --log-level=DEBUG” and try to login, I receive the following error message…
[D 2022-04-28 00:22:47.585 JupyterHub ldapauthenticator:260] Looking up user with:
search_base = ‘dc=ad,dc=corp,dc=com’
search_filter = ‘(sAMAccountName=snewberr)’
attributes = ‘sAMAccountName’
[W 2022-04-28 00:22:47.675 JupyterHub ldapauthenticator:277] No entry found for user ‘snewberr’ when looking up attribute ‘sAMAccountName’
[W 2022-04-28 00:22:47.675 JupyterHub base:820] Failed login for snewberr
Any thoughts on how I can address this issue?
Thanks,
Stuart