fix ldap error mapping