Quote:
Originally Posted by pkilpo
I use ldapsearch to get a distinguishedName of a user. Then I check if user belong to certain group.
|
Active Directory requires that
the following characters be escaped with the backslash "\" escape character:
, The comma
\ The backslash character
# The pound sign (hash sign)
+ The plus sign
< The less than symbol
> The greater than symbol
; The semicolon
" The double quote character (quotation mark)
= The equal sign
And Leading or trailing spaces. The space character must be escaped only if it is the leading or trailing character in a component name, such as a Common Name. Embedded spaces should not be escaped.
In addition, ADSI requires that the forward slash character "/" also be escaped. The ten characters above, plus the forward slash, must be escaped in VBScript programs because they use ADSI. If you view attribute values with ADSI Edit you will see the ten characters above escaped, but not the forward slash. Utilities (like adfind.exe) that do not use ADSI need to have the ten characters above escaped, but not the forward slash. (
<- Richard L. Mueller ->)
\Rems