Characters disallowed for Microsoft Active Directory distinguished names

If Microsoft Active Directory is the user registry, certain special characters are not allowed in a distinguished name (DN). However, if the character is preceded by an additional escape character or is encoded in hexadecimal, then, it is allowed in a DN.

To encode in hexadecimal, replace the character with a backward slash (\) followed by two hexadecimal digits. The following characters must be escaped using the backward slash (\) character before they are used in a distinguished name:

Because of differences in registries and command shell processors, avoid the backward slash (\) character in distinguished names. For other reserved characters, such as an equal sign (=), asterisk (*), or a non-UTF-8 character, the character must be encoded in hexadecimal.

Parent topic: Characters disallowed for distinguished names