Using Special Characters

Active Directory and other LDAP-based user directories allow special characters in entities such as DNs, user names, roles, and group names. Special handling may be required for Shared Services to understand such characters.

Generally, you must use escape characters while specifying special characters in user directory settings; for example, Base DN and user and group URLs. Table 11 lists the special characters that can be used in user names, group names, user URLs, group URLs, and in the value of OU in user DN.

Table 11. Supported special characters

Character[1]Name or MeaningCharacterName or Meaning
(open parenthesis$dollar
)close parenthesis+plus
quotation mark&ampersand
'single quotation mark\backslash
,comma^caret
=equal to;semicolon
<less than#pound
>greater than@at

1 Do not use / (slash) in organization unit names that come within the Base DN

Table 12. Characters that need not be escaped

CharacterName or MeaningCharacterName or Meaning
(open parenthesis'single quote
)close parenthesis^caret
$dollar@at
&[1]Ampersand 

1 Must be stated as &amp;.

These characters must be escaped if you use them in user directory settings (user names, group names, user URLs, group URLs and User DN).

Table 13. Escape for Special Characters in User Directory Configuration Settings

Special CharacterEscapeSample SettingEscaped Example

comma (,)

backslash (\)

ou=test,ou

ou=test\,ou

plus sign (+)

backslash (\)

ou=test+ou

ou=test\+ou

equal to (=)

backslash (\)

ou=test=ou

ou=test\=ou

pound (#)

backslash (\)

ou=test#ou

ou=test\#ou

semicolon (;)

backslash (\)

ou=test;ou

ou=test\;ou

less than (<)\&lt;ou=test<ouou=test\&lt;ou
greater than (>)\&gt;ou=test>ouou=test\&gt;ou
“ (quotation mark)[1]\\ (two backslashes)ou=test”ouou=test\\”ou
\ (backslash)[2]\\\ (three backslashes)ou=test\ouou=test\\\\ou

1 In User DNs, quotation mark (“) must be escaped with one backslash. For example, ou=test”ou must be specified as ou=test\”ou in User DN.

2 In User DNs, back slash (\) must be escaped with one backslash. For example, ou=test\ou must be specified as ou=test\\ou in User DN.

Caution!

If the user URL is unspecified, users created within the RDN root must not contain / (slash) or \ (backslash). Similarly, these characters should not be used in the names of groups created within the RDN root if a group URL is not specified. For example, group names such as OU=child\ou,OU=parent/ou or OU=child/ou,OU=parent\ou are not supported. This issue does not apply if you are using a unique attribute as the ID Attribute in the user directory configuration.