Ldap fix