jupyterhub / ldapauthenticator

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

500 : Internal Server Error when using = True #193

Closed BlueCog closed 3 years ago

BlueCog commented 3 years ago

Hello All,

I'm trying to configure ldapauthenticator with c.LDAPAuthenticator.use_ssl = True and c.LDAPAuthenticator.server_port = 636 but i'm getting an 500 : Internal Server Error

I'm using Jupyterlab on RHEL 7 deployed at OpenShift (K8)

LDAP authentication without SSL works.

I've tried setting the ENV vars REQUESTS_CA_BUNDLE, LDAPTLS_CACERT and OPT_X_TLS_CERTIFICATE to the location of the certs: /etc/pki/tls/certs/ca-bundle.crt

But that seems not to work.

Is there a different ENV Var or (undocumented) c.LDAPAuthenticator.xxx setting I could be using?

I've searched all the resources but it seems not to be there...

welcome[bot] commented 3 years 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:

BlueCog commented 3 years ago

Note:

When using the settings like this the connection is successful (what seems to be requesting SSL?):

c.LDAPAuthenticator.server_address = 'ldaps://ads-server-url' c.LDAPAuthenticator.use_ssl = False c.LDAPAuthenticator.server_port = 636

Setting c.LDAPAuthenticator.use_ssl to True will throw the error 500

BlueCog commented 3 years ago

hmm it was a incompatibility problem with ldapauthenticator 1.3.0 & LDAP3 2.8. I've upgraded ldapauthenticator to 1.3.2 and the problems were solved!

Will close this issue