-
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
JupyterHub with LDAPAuthenticator startTLS failed - protocolError #211
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I had the same problem but was able to resolve it by fixing like this:
|
That works for me~ |
Thanks! |
This is very annoying in case LDAP does not support SSL or StartTLS |
Is there any way to make it work without modifying the code? At this point it appears unusable in case LDAP is not using SSL or StartTLS |
If you don't want to change the code, you can use self-signed certificates (not recommended in prod): `#!/bin/bash Directory to store certificatesCERT_DIR="./certs" Create directory if it doesn't existmkdir -p "$CERT_DIR" Navigate to the directorycd "$CERT_DIR" Step 1: Generate the CA Key and Certificateecho "Generating CA key..." echo "Generating CA certificate..." Step 2: Create a Server Key and Certificate Requestecho "Generating LDAP server key..." echo "Generating LDAP server certificate request..." Step 3: Generate the Server Certificate using the CAecho "Generating LDAP server certificate..." Clean up CSRrm openldap.csr echo "Certificate generation complete. Files are located in $CERT_DIR" |
So... is this a bug in JupyterHub that needs fixing, and is the above the fix? Should we send it upstream? I'm asking because I'm having the same problem right now, and I need to implement the same workaround. If the ldapauthenticator is designed to not work without SSL or startTLS, then it needs to be documented. If on the other hand it should work but is just buggy, and obviously this is the fix, then why not commit this? I can prepare a PR if that's the issue... |
Trying to use LDAPAuthenticator with JupyterHub. The authentication process returns the following error:
Here is the relevant portion of the config file for Helm:
Any insight would be greatly appreciated.
The text was updated successfully, but these errors were encountered: