fix requiring of ldap