Fix ldap rest