-
Notifications
You must be signed in to change notification settings - Fork 28
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
TLS-Error messages should be passed along #44
Comments
Very detailed information. Thanks! I would like to add the details of the error. Can you let me know how did you get the error: |
Hi, I could print the meaningful errors within these
and inside
As I said unfortunately it wasn't passed - or it might be overwritten later. |
hmm... I tried different errors and all of them are passed to the caller as is. I don't think the error has a message field before the reject, but lost it afterwards. It is only my guess, that your first error output may be incomplete since the error code is unspecified. But if you print the error the same way as you log the error while you are debugging, it should have more detailed information. |
I will set up an environment with 1024 bit key to try it out |
Hm, I actually just logged the error variables err / error to the console We replaced the certificate inbetween and it's working now, so unfortunately I can't provide more information. |
Hi,
today I went through a tough debugging session due to meaningless error messages.
The scenario:
I was only able to connect to a new domain controller via LDAPS from my local machine (running OsX).
My debian server however isn't able to connect and throws the following error message:
Pretty expressive! :D
After checking credentials, environment vars, certificates, several server logs, network configuration / firewall traffic, etc.
I copied the complete sourcecode of this project and added logging messages till I finally got the cause:
EE certificate key too weak
My colleague who set up the domain controller used a certificate with a keylength of 1024 bit - which is obviously bad.
I guess OsX is handling this less strict than debian. (Well, it could also be caused by the env-var NODE_ENV=production on the debian machine. I don't know that detail for sure.)
(I look forward that it will work as soon as my colleague replaces the certificate.)
Nevertheless I'd prefer if the error messages thrown inside the client.on-callbacks in the _ldapBind function would be passed along somehow.
Thanks and have a nice day! :)
The text was updated successfully, but these errors were encountered: