node-ldapjs: ldapjs can't handle a well known container query
To query for a well known container in Active Directory, you supply the query with a baseDN that’s formatted in an unusual way.
ldapjs fails when presented with this query:
node_modules/ldapjs/lib/dn.js:212
if (beg === cur) { throw invalidDN(name) }
^
Error [InvalidDistinguishedNameError]: <WKGUID=A9D1CA15768811D1ADED00C04FD8D5CD,dc=dmtest,dc=suse,dc=de>
at invalidDN ( node_modules/ldapjs/lib/dn.js:8:13)
at parseAttrType ( node_modules/ldapjs/lib/dn.js:212:30)
at parseRdn ( node_modules/ldapjs/lib/dn.js:171:20)
at Object.parse ( node_modules/ldapjs/lib/dn.js:290:13)
at ensureDN ( node_modules/ldapjs/lib/client/client.js:85:15)
at Client.search ( node_modules/ldapjs/lib/client/client.js:596:18)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (6 by maintainers)
Well, you should be able to get up and running with this command:
You could probably just communicate with ldap via the container IP, and not mess with fixing dns.