Please sign in to comment.
Util.pm: extend ldap_explode_dn() for RFC 4514
Extend ldap_explode_dn() to also parse DNs that conform to RFC 4514. This way ldap_explode_dn() is rather lax in checking what it allows or not, but tries to make sense of as much DNs as possible. Changes: - only spaces ignored around attribute value instead of \s - NUL (U+0000) not allowed unquoted in attribute value - sharp/square/octothorpe (U+0023) allowed unquoted unless at first position - equal sign (U+003D) allowed unquoted in attribute value - space (U+0020) allowed to be quoted by \\ in a quoted pair Test cases adapted accordingly.
- Loading branch information...
Showing with 16 additions and 10 deletions.