-
Notifications
You must be signed in to change notification settings - Fork 813
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
Using ldapauthenticator #264
Comments
This was massively helpful. Thanks! |
Thank you very much for these instructions! I have untagged 0.6, since it's only a few days away and I don't think we can add native support for this by then. We will try to get this in for 0.7! Patches welcome :) |
I've added a link to this issue in the Zero to JupyterHub wiki resources so that others may discover this helpful info more easily. Thanks for the write up. @yuvipanda Is there any dev work still needed here? |
Yep, I think we should support this out of the box, since lots of people
use this authenticator.
…On Tue, Feb 27, 2018 at 1:30 PM, Carol Willing ***@***.***> wrote:
I've added a link to this issue in the Zero to JupyterHub wiki resources
<https://github.com/jupyterhub/zero-to-jupyterhub-k8s/wiki#resources> so
that others may discover this helpful info more easily. Thanks for the
write up.
@yuvipanda <https://github.com/yuvipanda> Is there any dev work still
needed here?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#264 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB23oaoqq67EuDYcduJrbDIdVkLN47_ks5tZHPqgaJpZM4QWfCI>
.
--
Yuvi Panda T
http://yuvi.in/blog
|
I too assumed LDAP was already available till I tried to enable it. I'll have a go at adding it if no one else has. |
As I spent several hours on getting this to run, this is how one can use https://github.com/jupyterhub/ldapauthenticator with this project:
Dockerfile
of the "hub" image, addinggit+https://github.com/jupyterhub/ldapauthenticator@a8bc231
to the first pip3 call (the one installing lots of dependencies. The version from pypi is one year old and semms to have caused some issues, but that might have been different problems. It definitely is worth giving the released version a try, I decided to change to the most recent commit in the middle of debugging and didn't go back.auth:
section like this:The big issue that caused a lot of confusion on my end was that the keys in
custom:
are NOT like the documentation at https://github.com/jupyterhub/ldapauthenticator/blob/master/README.md but they are already dropped into the correct part of the configuration by https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/master/images/hub/jupyterhub_config.py#L188. To be clear: While the documentation is written as if the key should beLDAPAuthenticator.server_address
or evenc.LDAPAuthenticator.server_address
, it actually must beserver_address
and the config loader will automatically put it in theLDAPAuthenticator
section of the jupyterhub config. These settings are of course specific to your environment, the big issue for me was that they never were actually getting applied and the errors that were logged due to this were less than helpful.4. Add the hub image that you built to the
hub: image:
section5. Add whatever other configuration you need and deploy away
Things that will NOT work (easily):
pip3 install jupyterhub-ldapauthenticator
in there to get your new hub image - you need to be root to do that, since root owns a few folders that you would need. You can write a Dockerfile with USER statements before and after the pip3 install I guess, I personally found it easy enough to just build the upstream one instead of using it as base layer.Hopefully this helps people who want LDAP authentication enabled for their jupyterhub instance on Kubernetes.
The text was updated successfully, but these errors were encountered: