-
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
Added LDAPLocalAuthenticator #36
Conversation
Should solve #29 and jupyterhub/jupyterhub#932 |
Patch Not Working:
I tested this with the following in the config file.
But the home directory is not created. Is there anything else to be added in the configuration. |
Did you add c.JupyterHub.authenticator_class = 'ldapauthenticator.ldapauthenticator.LDAPLocalAuthenticator' In my tested use case I'm not using Might it be related to compmodels/jupyterhub#7? You can find my |
Yes I added the other parameters. |
It sounds to me like an issue not related to this patch. Did you try with only the LocalAuthenticator? |
Issue solved 👍
Maybe need to change the README.md file. Because the README.md says
and this doesn't works |
This PR has solved my problem. I hope it will be included in the master branch. |
Heya! Am glad this works for some people - however, it's pretty insecure since there's no cleanup of created users - so users who are disabled in LDAP will have access to this for far longer. Plus, there's really good support in Linux for integrating LDAP into the system user setup directly - so users can just use PAM (which is supported in not just JupyterHub, but ssh and a lot of other tools) to log in. You can see http://www.tldp.org/HOWTO/archived/LDAP-Implementation-HOWTO/pamnss.html and lots of other documentation on the web on how to set up LDAP to provide user accounts for your system. Those are all very widely used, much more secure & more widely documented - and I would recommend you use them rather than have JupyterHub create local accounts. See #19 for prior discussion on this. Thank you very much for the patch, and I appreciate it - but am not going to include this in functionality on account of it being insecure. We could and probably should add a lot more docs to the README pointing this out, since I guess it's a very common question! |
By inheriting from the LocalAuthenticator class, LDAPLocalAuthenticator is able to create non-existing user accounts.
WARNING!! ONLY TESTED USER CREATION!