-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ldap auth is failing a regex on a list that should be a string #128
Comments
sqqqrly
added a commit
to ohlemacher/zero-to-jupyterhub-k8s
that referenced
this issue
Jul 11, 2019
Fix LDAP with a hack workaround described in jupyterhub/ldapauthenticator#128. The hub dockerfile applies a patch to the ldapathenticator py module. This is based on upstream version 0.9-b609a67 helm chart. This was obtained from a tarball so a bit disconnected from upstream. However, it is working so checking in. DCO 1.1 Signed-off-by: David Ohlemacher <[email protected]>
Great. I would be happy to give a candidate a test. Seems your UTs will likely have it covered though. |
Yeah my test suite got merged and I added logic that checks if the result of We're planning to get one more feature PR merged this coming Monday, and then hopefully we can cut a release candidate 🎉 |
I think this got fixed by #117. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
I am deploying z2jh on a self hosted k8s cluster. When I attempted to enable LDAP auth, I hit an exception on
ldapauthenticator/ldapauthenticator/ldapauthenticator.py
Line 320 in 455432a
The resolved_username (aka username) is a list of strings where the regex requires a string. As a result, it raises a type error.
Is this unique to my AD server?
Cause
I instrumented how resolved_username is set. The problem seems to be with
def resolve_username(self, username_supplied_by_user)
.This shows the username_supplied_by_user param provided to the method and its return value.
Here is the structure seen:
Possible fix
Append "[0]".
Temporary hack fix
Versions
Helm chart: jupyterhub-0.9-b609a67
The text was updated successfully, but these errors were encountered: