Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
2 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters