LDAP search filter for Active Directory
- by Francesco De Vittori
Hello,
I'm trying to look for users inside Active Directory through a LDAP query. Basically I'm searching for the user in this way:
Search DN: dc=mydomain, dc=com
Filter: (sAMAccountName=USER) where USER is replaced with the provided username.
Now if USER is only the username without domain (for ex. "Joe") this works fine.
However I receive…