-
Notifications
You must be signed in to change notification settings - Fork 305
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 user UID use on c.KubeSpawner.singleuser_uid #298
Comments
I tried that a few months ago, it required changes to ldapauthenticator to return additional LDAP fields: jupyterhub/ldapauthenticator#103 You can then use a pre-spawn hook to set the UID, and any other fields:
Note I haven't tested this recently. |
Thanks so much for your reply @manics!! I have found your branch here. However I am not sure how to use the pre-spawn hook to set UID. Would you mind pointing a general direction where I should go? Thanks |
You can add it to jupyter_config.py. You'll need to define your own Authenticator subclass and use that. A quick (but not very nice) way is to define your entire class in I'm a bit busy at the moment so I've just pasted my old config, hopefully you can figure out what's needed:
@consideRatio Do you have a link to some proper docs? |
I'm running into this same issue. Any progress on getting this upstreamed? |
This still looks very useful. Any idea when it can be merged? |
jupyterhub/ldapauthenticator#103 was merged and included in Z2JH 0.9.0 🙂 |
So @manics we finally got that I'm thinking we should add support for That way this workflow can be supported by the Helm chart without requiring a custom image or gnarly embedded code in your answers |
yes please. |
Yes, |
Hi,
Thank you for this awesome project!! it's great!
I just finished using the jupyterhub-ldapauthenticator to authorized user with my on prem AD.
It's great and now I am able to restrict users access to Jupyterhub.
However, I wonder if there is anything I can modify in jupyter_config.py in order to pass LDAP user's UID and map it directly as jovyan's UID instead of using UID 1000, therefore all users who start a notebook will have their own UID mapped already.
The text was updated successfully, but these errors were encountered: