-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
[0.60.x] Secure LDAP connection issues - Error: socket hang up #9316
Comments
Using 0.60.2 it is working for me. I am using the same settings except for the CA Cert. I filled it because we used an internal CA to sign the LDAP cert. |
Doing some more debugging doesn't reveal much more. Here are some more outputs I gathered:
So the server properly supports TLSv1.2 and the connection can be established. Doing some tcpdumps when Rocket.Chat connects via LDAPS reveals this:
This corresponds to the errors seen in the logfile of Rocket.Chat. I was not yet able to get more information about the error out of the LDAP server (389DS), but I keep on trying. In the meantime: Has anything changed in 0.60.x regarding TLS handling? |
While travelling back in time and check old logfiles of the LDAP server (389DS) I could see connections from Rocket.Chat before upgrading to 0.60.x:
So according to this log lines Just for the sake of completeness: I'm running Rocket.Chat in Docker, using the official Docker Image from here: https://hub.docker.com/r/rocketchat/rocket.chat/ |
Finally found the matching log entry:
So there where definitively changes in either Rocket.Chat, the NodeJS TLS library or the LDAP library. I think it would be great to have an advanced configuration option to choose which cipher suites should be used. |
Makes sense. Maybe this has something to do with the upgrade to node v8 or meteor v1.6. Sadly, I do not understand enough of meteor to judge what this change means: 7035293 Apparently, ldapjs was required as a meteor package in v1.0.0 and is now used as an npm package v1.0.1. |
Yeah, I also guess that it has something to do with a newer version of NodeJS and/or a library. So the best thing IMHO would be the possibility to chose the available cipher suites. |
But the previously working cipher is already included as you can see here: |
I see. No idea why this doesn't work anymore... |
@tobru Which exactly version you was using? 0.59.(?) |
I would say it was 0.59.1 |
Related to DevExpress/testcafe-hammerhead#1403 The problem was introduced by NodeJS 8.6, need to set |
Related nodejs/node#16853 |
|
Closed via #9343 |
@tobru Thanks, it's awesome to have a community that understand and help us to fix the issues. |
Description:
Connections to the LDAP server using TLS or StartTLS don't work.
Server Setup Information:
Steps to Reproduce:
The problem started to show up after upgrading from 0.59 to 0.60, it worked like a charm with 0.59.
Expected behavior:
Secure connections to LDAP work.
Actual behavior:
Connection doesn't work with the message "Error: socket hang up".
Relevant logs:
I checked if connections to the LDAP server are working using OpenSSL, and they do:
Settings:
The text was updated successfully, but these errors were encountered: