For LDAP attributes, you can use the majority of special characters as is. The following are the exceptions:
The userid attribute does not support the following characters:
Colon (:)
Slash (/)
Left brace ({)
Right brace (})
The basectxdn, rolesctxdn, and role attributes do not support the comma (,).
If you want to use quotation marks (") or a backslash (\) in LDAP attributes, you must prepend these characters with a single backslash (\) character. For example, if you want to use the backslash\ value for the sAMAccountName attribute, you need to enter it as backslash\\.