mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Only set c_sasl_bindop on actual SASL binds
This commit is contained in:
parent
92ff6afec0
commit
cf47d33459
1 changed files with 4 additions and 3 deletions
|
|
@ -232,9 +232,6 @@ fe_op_bind( Operation *op, SlapReply *rs )
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
/* Set the bindop for the benefit of in-directory SASL lookups */
|
||||
op->o_conn->c_sasl_bindop = op;
|
||||
|
||||
if ( op->orb_method == LDAP_AUTH_SASL ) {
|
||||
if ( op->o_protocol < LDAP_VERSION3 ) {
|
||||
Debug( LDAP_DEBUG_ANY, "do_bind: sasl with LDAPv%ld\n",
|
||||
|
|
@ -269,6 +266,10 @@ fe_op_bind( Operation *op, SlapReply *rs )
|
|||
} else {
|
||||
ber_dupbv(&op->o_conn->c_sasl_bind_mech, &op->orb_tmp_mech);
|
||||
}
|
||||
|
||||
/* Set the bindop for the benefit of in-directory SASL lookups */
|
||||
op->o_conn->c_sasl_bindop = op;
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
|
||||
|
||||
rs->sr_err = slap_sasl_bind( op, rs );
|
||||
|
|
|
|||
Loading…
Reference in a new issue