updated ldap search to be more consistent