LdapName
implements compound names for LDAP v3 as specified by RFC 2253. RFC 2253 has a few ambiguities and outright inconsistencies. These are resolved as follows:
String names passed to LdapName
or returned by it use the full 16-bit Unicode character set. They may also contain characters encoded into UTF-8 with each octet represented by a three-character substring such as "\\B4". They may not, however, contain characters encoded into UTF-8 with each octet represented by a single character in the string: the meaning would be ambiguous.
LdapName
will properly parse all valid names, but does not attempt to detect all possible violations when parsing invalid names. It's "generous".
When names are tested for equality, attribute types and binary values are case-insensitive, and string values are by default case-insensitive. String values with different but equivalent usage of quoting, escaping, or UTF8-hex-encoding are considered equal. The order of components in multi-valued RDNs (such as "ou=Sales+cn=Bob") is not significant. @author Scott Seligman
|
|
|
|