Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
2.0.0
Description
Creating principals in AD when special characters are involved causes failures.
The following characters in the CN need to be escaped:
/ , \ # + < > ; " =
Note: javax.naming.ldap.Rdn will properly escape relative distinguished name parts.
The following characters in the sAMAccountName need to be removed or replaced:
[ ] : ; | = + * ? < > / \
Note: This needs to be done explicitly within the attributes set if a relevant entry exists.
// Replace the following _illegal_ characters: [ ] : ; | = + * ? < > / \ value = value.toString().replaceAll("\\[|\\]|\\:|\\;|\\||\\=|\\+|\\*|\\?|\\<|\\>|\\/|\\\\", "_");