Skip to content
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

ldaps not working #235

Open
munishsinghal opened this issue Sep 3, 2021 · 1 comment
Open

ldaps not working #235

munishsinghal opened this issue Sep 3, 2021 · 1 comment

Comments

@munishsinghal
Copy link

I used this code for ldap and ldaps.

  • For ldap I am able to make authentication working
  • For ldaps same url is not working, even I tried ip address with ldaps as well, it also did not work.

Note: I tested both ldap and ldaps with ldap search and both are working fine

  • ldapsearch x -D @test.local -W -H ldap://xyz.global.test.local -b “ou=Users,ou=User Workspace,dc=test,dc=local”
  • ldapsearch x -D @test.local -W -H ldaps://xyz.global.test.local -b “ou=Users,ou=User Workspace,dc=test,dc=local”

It seems there is some different way for ldaps domain. Please advice.

@dedo1911
Copy link

dedo1911 commented Nov 2, 2021

You're probably expecting a TLS connection with ldaps, but this library is only using up to SSLv3

From ldapjs docs (http://ldapjs.org/client.html):

You can use ldap:// or ldaps://; the latter would connect over SSL
(note that this will not use the LDAP TLS extended operation,
but literally an SSL connection to port 636, as in LDAP v2).

This lib should be using client.starttls instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants