ldap filter for distinguishedName

I am successfully querying our Active Directory for a user with the following code: $filter = (&(objectCategory=person)(samaccountname=someusername)); $fields = array(“samaccountname”,”mail”,”…