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

Affected Versions
Versions known to exhibit this issue
8.3.97.0.418.0.309.0.0-rc2
Fixed Versions
Versions that include the fix
9.1.0-rc08.3.169.0.78.0.377.0.48
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.