fix ldap reverse lookup

this test has obviously been modified without being tested