fixing ldap auth