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

Issue with guide example

Open jorgen-17 opened this issue 10 years ago • 0 comments

Hey, loving ldapjs so far, its definately been making learning and setting up ldap a lot more clearer than using slapd directly. Anyways just noticed there is a mistake in the examples located at http://ldapjs.org/guide.html. The examples look for a cn property in rdns[0] i.e.

req.dn.rdns[0].cn

but they should be looking for it in rdns[0].attrs i.e.

req.dn.rdns[0].attrs.cn

Other than this the documentation is a huge improvement over the slapd docs I've seen out there. Thanks for putting this together!

jorgen-17 avatar Feb 11 '16 03:02 jorgen-17