Fixed ldap error