Post by akg414sI need a list of characters that can't be used for an Active Directory
username.
Thanks
If you mean the "Pre-Windows 2000 logon name", the following are not
allowed:
[ ] : ; | = + ? < > * "
I'm not aware of any characters that are not allowed in Common Names. The
characters above are allowed. However, if any of the following are used they
must be escaped with the backslash "\" escape character:
, \ # + < > ; " =
In addition if you use ADSI (in scripting for example) the forward slash,
"/", must also be escaped with the backslash. For example, if the Common
Name of a user is "Last, First", then in VBScript you would bind to the
object with code similar to:
Set objUser = GetObject("LDAP://cn=Last\, First,ou=West,dc=MyDomain,dc=com")
Among the characters I have tested and found to be fine in Common Names (and
elsewhere in Distinguished Names, such as the name of an OU):
* ( ) . & - _ [ ] ` ~ | @ $ % ^ & ? : |
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--