make sure the shared ldap connection is rebound to the configured user after being used for password checking.
Merge pull request #5425 from buczek/fix-ldap-login

Fix ldap login