Workaround for login error when using both LDAP and internal authentication.