-
Notifications
You must be signed in to change notification settings - Fork 66
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
v2.6.1 fails with "LDAP connection failure: automatic start_tls befored bind not successful" #656
Comments
I can confirm that. Switching back to 2.6 solves the issue. |
It must be an updated ldap3 library packed in 2.6.1 than in 2.6.0, as there are no code differences in between these versions. |
Thanks, Luci. Your solution works. Interestingly the LDAPS-Server with the "require_tls_cert: True" setting worked even though it would be using LDAPS over TLS... |
Hi, @mgoette , tried 2.6.1 with require_tls_cert: True and changed the url to ldap:// and i am getting the following error. Logs
|
Seems to be a firewall issue to me. Make sure tcp/389 is opened and your LDAP-Server offers LDAP and not just LDAPS. |
@mgoette, LDAPS should go through port 636 not 389 and yes 389 is not open as we do not offer LDAP over 389 (unencrypted traffic) in our enviroment. |
Thats exactly the point. |
Look like there is a change to LDAP3 version 2.8 causing this issue. |
Bug fix: Prevent start_tls before Bind on LDAPS Connection
Description
Tried to upgrade from 2.6 to 2.6.1 and the new version fails to connect to ldap.
Steps to reproduce
Run version 2.6.1 of user-sync with 2.6 config
Configuration is in the correct .yml files and the configuration is tested and works fine with 2.6.
Expected behavior
That user-sync connect to ldap and get group information and users
Logs
DEBUG ldap - Connecting to: ldaps://fqdn - Authentication Method: SIMPLE using username: username@domain
CRITICAL main - LDAP connection failure: automatic start_tls befored bind not successful
INFO main - ========== End Run (User Sync version: 2.6.1) (Total time: 0:00:00)
Environment
The text was updated successfully, but these errors were encountered: