foss-haas / rfc2253

LDAPv3 Distinguished Name parser/formatter.
MIT License
5 stars 2 forks source link

Multivalue RDNs #14

Open ezzadeen opened 4 years ago

ezzadeen commented 4 years ago

There seems to be an issue with multivalue RDNs.

let dn = rfc2253.parse('C=CA,O=ACME Co,email=test@email.com+CN=b37e5a5c'); console.log(dn.get(2).get('CN'));

This will return undefined

But if I use console.log(dn.get(2).get('+CN')); I get the CN value. Why is the "+" required? It is supposed to be consumed.

pluma commented 4 years ago

This is currently a limitation of the parser. The project hasn't been touched in a while.