Closed emrahayanoglu closed 9 years ago
Not much with that - but it looks like the connection is closed when search is performed. One reason could be server disconnecting because of bindDn
and bindCredentials
are not given and thus trying to perform anonymous search.
Thanks for your help. We moved from SSL based LDAP connection to without SSL based LDAP connection and it is working currently.
You could try using newer ldapjs
by first removing ldapauth-fork
from node_modules
-folder, then add "ldapjs": "mcavage/node-ldapjs#acc1ca8f43"
to package.json
, and then run npm install
(because ldapjs is not working using TLS on Node 0.12 and newer). Another issue could be the certficate - try adding option "tlsOptions" : { "rejectUnauthorized" : false }
when creating LdapAuth
Hi,
I try to connect and login through LDAP using the following code:
And my configuration settings is like that:
However, whenever I try to login, I've got following error:
Actually, I try to re-initialize the ldap client per each request; however, it gives another error: LDAP connection closed. I'm stuck currently. Do you have any idea about that?