This provides the search syntax for using the dsquery command on a Domain Controller to find the correct Active Directory DN for a user for use in LDAP authentication scenarios. For example:
dsquery user dc=example,dc=com -name user1*
which outputs:
"CN=user1,CN=Users,DC=example,DC=com"