hansohn / jupyterhub-ldap-authenticator

LDAP Authenticator plugin for JupyterHub
MIT License
17 stars 11 forks source link

LDAP Query Returning More Than One Result #21

Open kakoneh opened 2 years ago

kakoneh commented 2 years ago

I'm experiencing Jupyterhub Login failure when LDAP query is configured to do a full domain search and returns multiple result. We're doing a full domain search of our organization because Jupyterhub users spans multiple OUs. The same LDAP query in Powershell returns a single result or user. All tips and suggestions are welcome... Thanks in advance...

The configuration we're using looks like below:

Please fine the error response string below(Replaced secrets with 'x')

"Nov 23 09:11:38 Linux Server jupyterhub[1472835]: [I 2022-11-23 09:11:38.895 JupyterHub log:189] 200 GET /hub/login (xxxxx) 28.69ms(xxxxxxx) 28.69ms
Nov 23 09:12:04 xxxxxx jupyterhub[1472835]: [E 2022-11-23 09:12:04.216 JupyterHub ldapauthenticator:521] LDAP search '(&(objectCategory=person)(objectClass=user)(mail=username@org.com))' returned 4 results. Please narrow search to 1 result
Nov 23 09:12:04 Linux Server jupyterhub[1472835]: [W 2022-11-23 09:12:04.216 JupyterHub base:823] Failed login for , xxxxxx"
Armadik commented 2 years ago

This problem is solved here https://github.com/hansohn/jupyterhub-ldap-authenticator/pull/20/files

kakoneh commented 2 years ago

@Armadik, thanks for your response... One more question on this, as I have already installed Jupyterhub on Redhat Linux 8, how do I update Jupyterhub or LDAP to pull in these new fixes?

kakoneh commented 2 years ago

@Armadik also, the commit/Code Change you pointed me to was never merged...