mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
Reset pin on simple bind
This commit is contained in:
parent
cbc0ec04c0
commit
205db0bf94
1 changed files with 3 additions and 0 deletions
|
|
@ -322,6 +322,9 @@ request_bind( LloadConnection *client, LloadOperation *op )
|
||||||
CONNECTION_LOCK(upstream);
|
CONNECTION_LOCK(upstream);
|
||||||
if ( pin ) {
|
if ( pin ) {
|
||||||
tavl_delete( &upstream->c_ops, op, operation_upstream_cmp );
|
tavl_delete( &upstream->c_ops, op, operation_upstream_cmp );
|
||||||
|
if ( tag == LDAP_AUTH_SIMPLE ) {
|
||||||
|
pin = op->o_pin_id = 0;
|
||||||
|
}
|
||||||
} else if ( tag == LDAP_AUTH_SASL && !op->o_pin_id ) {
|
} else if ( tag == LDAP_AUTH_SASL && !op->o_pin_id ) {
|
||||||
ldap_pvt_thread_mutex_lock( &lload_pin_mutex );
|
ldap_pvt_thread_mutex_lock( &lload_pin_mutex );
|
||||||
pin = op->o_pin_id = lload_next_pin++;
|
pin = op->o_pin_id = lload_next_pin++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue