Made a search by distinguishedName Active Directory specific as it is difficult to come up with a generic solution.