Open gramakri opened 1 year ago
Are you suggesting a note be added to the v3 release notes? Or are you suggesting something else?
@jsumners Oh, I thought this was a bug. Is this difference intentional? Per https://github.com/ldapjs/node-ldapjs/blob/master/docs/server.md#bind it still uses req.dn.toString() like in v2.
Here's what I can tell you:
server.bind
method for v3 was to utilize @ldapjs/protocol
-- https://github.com/ldapjs/node-ldapjs/blame/bec2ff8e7399155ebdcbf86eec2077a792b8510b/lib/server.js#L577string
for 12 years._mount
method (which builds the arguments for the handler) has a change that returns an @ldapjs/dn
instance under the right conditions -- https://github.com/ldapjs/node-ldapjs/blame/bec2ff8e7399155ebdcbf86eec2077a792b8510b/lib/server.js#L908
In 3.x, req.dn has become a string in Server.bind handlers instead of the DN Object. Server.search route handler still has req.dn has an object.
Example:
When testing with
ldapsearch -x -H "ldap://127.0.0.1:1389" -D "ou=sftp,dc=example" -w "password" -b "dc=example"
: