Correctly handle LDAP authentication error, so the correct user error message is shown.