Use bind_as() to localize LDAP identity changes.

Mangling settings globally means that functions running in parallel will
be affected. Instead, use the newly-added bind_as() method to locally
change LDAP identity.
Replace get_ldap_connection with LDAPUser
Remove get_ldap_connection completely