SERVER-137322ClosedFixed
Disconnecting an LDAP connection after a timed-out SASL bind can deadlock all SASL authentication
h3. Problem SERVER-130785 added a {{disconnect()}} call in {{LDAPRunnerImpl::getConnectionWithOptions}} after any failed bind: If the bind timed out ({{ldapTimeoutMS}}), {{PooledLDAPConnection::runFuncWithTimeout}} has returned {{NetworkTimeout}}, but the bind is still running on an LDAPConnPool thread. {{WrappedConnection::disconnect()}} skips the timeout wrapper and hands the same {{LDAP*}} to the LDAPConnectionReaper, which calls {{ldap_unbind_ext_s}} while the bind is still using it. Wi