jupyterhub / ldapauthenticator

LDAP Authenticator Plugin for Jupyter
BSD 3-Clause "New" or "Revised" License
202 stars 175 forks source link

incomplete documentation, not working project. #215

Open awesome-crab opened 1 year ago

awesome-crab commented 1 year ago

Bug description

Hello everyone. Sorry for the provocative title. But I am now trying that for several days and i am slowly but surely reaching my frustration limit. It seems not to be possible to use the jupyterhub-ldapauthenticator. If you do it as suggested in the docs it does not work. There is no example to find anywhere. Whenever I search for the issue I only find people who seem to have simillar issues but none of them ever got an answer in their posts. The same for discourse.jupyter.org. I will never sign up to that. For what if you never get help...? Also from reading all of the ldap issue which I was able to find I think the documentation here was not updated to the latest versions of the code?

Anyways I will describe my issue here. I have jupyterhub running inside an lxc container on a server in the company network. I want to use ldap active directory authentication. Thats is mainly to reduce the workload of admins. Basically the creation and deletion of users should be avoided this way. Whatever config I have it is not working. I always see 500 internal error in jupyterhub. Depending on the config the error messages in jupyterhub logs change:

What really leaves me puzzled is that I am able to see the users in ldap using the ldapsearch command inside the lxc container of jupyterhub. Also it is possible to include a small ldap3 script in the jupyterhub_config.py which is able to access ldap and get all users. the ldapsearch command and the python ödap3 script use the exact same credetials as specified in the jupyterhub_config.

Expected behaviour

I expect ldap to work? I saw the hint that ldap is complicated. but I dont get why ldapsearch and my custom ldap3 script seem to have access to our ldap ad but jupyterhub_ldapauthenticator does not work.

Actual behaviour

jupyterhub_ldapauthenticator does not work. Is there anybody who can say in march 2023 they have jupyterhub with the latest version and working ldap authenticator implementation?

How to reproduce

try set up the littlest jupyter hub in an ubuntu 20.04 lxc container and implement ldap. If that is working for you please sahre an anonymized version of your tljh-config. Would be highly appreciated. Also, if there is an ldap expert reading this, feel free to share some wisdom on ldap. What are issues which might exist?

What do you need from me in order to be able to help?

Specs

ubuntu 20.04 Jupyterhub 1.5.1 ldapauthenticator.ldapauthenticator.LDAPAuthenticator-1.3.2

welcome[bot] commented 1 year ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: