fix ldap integration