Closed GRme-zz closed 4 years ago
I found a fix for my issue.
Can you please post the resolution here for others to learn from it?
That's the result-object value when it's executed by ldapjs before you attach any on-listeners, so I guess the name result is misleading since the actual search result values are given through the "result.on('searchEntry', ...);"-callback function. Rename the result variable to event and it makes more sense.
⚠️ This issue has been locked due to age. If you have encountered a recent problem that seems to be covered by this issue, please open a new issue.
Please include a minimal reproducible example when opening a new issue.
Hey guys,
I have the following ldapsearch command that is working over commandline:
ldapsearch -v -x -D cn=myAdmin,ou=users,dc=crowd -w 'myPassword' -H ldap://localhost:10636 -s sub -b 'cn=myAdmin,ou=users,dc=crowd' '(&(cn=myAdmin)(ou=users))'
But the equivalent ldapjs code returns an empty search result:
And this is my source code:
Any ideas? Thanks :)