-
Notifications
You must be signed in to change notification settings - Fork 79
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
[Bug] Randomly having "Error: Client network socket disconnected before secure TLS connection was established" #65
Comments
I got the same problem |
I got the same problem using version 2.1.4 of passport-ldapauth package which uses node-ldapauth-fork version 4.3.2. passport-ldapauth creates a new It seems calling Maybe node-ldapauth-fork should not try to use any LDAP client before the connection has been secured while option What do you think? Am I missing the point completely? |
LDAP STARTTLS secures LDAP connection using LDAP standard protocol and port instead of LDAPS which is not part of the standard and is deprecated. Unfortunately it actually doesn't work with passport-ldapauth due to sub-dependency ldapauth-fork which doesn't wait for the connection to be secured before trying to authenticate (see Github issue: vesse/node-ldapauth-fork#65 for more details).
Hi, my colleague and me have found a fix for this bug. We tried to fix it as little invasive as possible. I have created a pull request, with this fix it is not needed to change anything in the function calls, so packages which depend on this one will not have to change their code, just update the version as soon as this merge request gets accepted and new version released. |
description
We are using:
verdaccio@3.0.2
within dockerverdaccio-ldap@2.0.0
that includeldap-fork@4.0.2
openldap@2.4.44
within dockerWe have GItLab-CI runner that run
npm install --registry https://our.registry.com
for the project.relevant log
I can connect repetitively multiple time to the LDAP, until:
In node 10.1.0
In node 8.11.2
related sources
We can connect repetitively to the LDAP but then this error happens and prevent us totally from using our verdaccio registry.
Is there a way to prevent such bug ? The verdaccio-ldap plugin is not supporting starttls, using starttls ,
The text was updated successfully, but these errors were encountered: