I need to get a directoryentry associated to a samaccountname.
It works in most cases, except when there are special characters in the samaccountname.
In the present case, a user has a '(' char in its samaccoutname so i escaped this char to test, but even if I don't have anymore a syntax error, the findone method return null so I wonder whats wrong.
anyway,
- does anybody know another way to do it?
- Is there is a method in .net to get from a standard string another string with good formatting to insert in an ldap request?
|