You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Template used to generate the full dn for a user from the human readable username. This must be set to either empty [] or to a list of templates the users belong to.
Note that the loop will not execute when the bind_dn_template is configured as the empty list.
Therefore the ldapauthenticator module prints: "Invalid password for user X" even though the code never even attempted to bind as the user! The password was not invalid. This code did not even attempt to bind to the LDAP server!
The README claims that
bind_dn_template
is optional:https://github.com/jupyterhub/ldapauthenticator/blob/master/README.md#ldapauthenticatorbind_dn_template
But the code does not even attempt to bind (log in) as the user if the
bind_dn_template
was not set:https://github.com/jupyterhub/ldapauthenticator/blob/master/ldapauthenticator/ldapauthenticator.py#L327
Note that the loop will not execute when the
bind_dn_template
is configured as the empty list.Therefore the ldapauthenticator module prints: "Invalid password for user X" even though the code never even attempted to bind as the user! The password was not invalid. This code did not even attempt to bind to the LDAP server!
https://github.com/jupyterhub/ldapauthenticator/blob/master/ldapauthenticator/ldapauthenticator.py#L353
I was able to work around my issue by setting
bind_dn_template = [ '{username}', ]
.In my JupyterHub / JupyterLab configuration YAML:
The above works with Microsoft Active Directory 2012 and JupyterHub 1.2.1 (Helm chart jupyterhub/jupyterhub version 0.8.2).
The text was updated successfully, but these errors were encountered: