node-activedirectory icon indicating copy to clipboard operation
node-activedirectory copied to clipboard

ldaps not working

Open munishsinghal opened this issue 4 years ago • 1 comments

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.

munishsinghal avatar Sep 03 '21 06:09 munishsinghal

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.

dedo1911 avatar Nov 02 '21 10:11 dedo1911