LDAP Error : Client network socket disconnected before secure TLS connection was established #3715
Unanswered
supralow
asked this question in
Error / Bug Report
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello to everyone,
I'm currently having quite a lot of difficulties for configuring LDAP Authentication on my WikiJS 2.0.12. I've done some troubleshooting, i'll try to be as concise as possible.
I do currently have a version of WikiJS in production with the version 1.X, which is working fine with LDAP Authentication.
While testing the version 2.X I've ended up getting the following error :
Client network socket disconnected before secure TLS connection was established
In the logs, with the "LDAP DEBUG" enable un the GUI :
2020-01-29T10:17:25.054Z [MASTER] warn: LDAP LOGIN ERROR (c1): Client network socket disconnected before secure TLS connection was established
After some googling I found this error if probably related to the newer version of nodeJS which doesn't support by default TLS 1.0. Sadly I'm not in control of the distant server, and I won't be able to get a single change on it. So I pulled the canary version of WikiJS to get a newer version of nodeJS and get the option :
--tls-min-v1.0 set default TLS minimum to TLSv1.0 (default: TLSv1.2)
But I'm still getting the same error.
You can find the different configuration I have :
I have my certification chain in the right place, the user node is owner of this file
The certification chain has been added to the container itself with update-ca-certificates
I can successfully join the remote LDAP server, and I can initiate de connection with "openssl s_client -connect host;636"
Actual LDAP Configuration :
-- ldaps://host.fqdn:636
-- uid=ADMIN,ou=Apps,dc=Company
-- PassW0rd
-- ou=people,dc=Company
-- searchFilter
-- TLS : YES
-- /wiki/data/certs/cert.cer
Beta Was this translation helpful? Give feedback.
All reactions