Try to generalize the ldap lookups into a single module