fixes #2098 - ldap auth when using a different account for authentication was broken