mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
ITS#8963 use BIND timeout for start_tls
Since we only support it in conjunction with Bind anyway, not as a standalone op
This commit is contained in:
parent
09ff530036
commit
765dfaf0e4
1 changed files with 2 additions and 2 deletions
|
|
@ -746,7 +746,7 @@ ldap_back_prepare_conn( ldapconn_t *lc, Operation *op, SlapReply *rs, ldap_back_
|
|||
assert( li->li_uri_mutex_do_not_lock == 0 );
|
||||
li->li_uri_mutex_do_not_lock = 1;
|
||||
rs->sr_err = ldap_back_start_tls( ld, op->o_protocol, &is_tls,
|
||||
li->li_uri, flags, li->li_timeout[ SLAP_OP_EXTENDED ], &rs->sr_text );
|
||||
li->li_uri, flags, li->li_timeout[ SLAP_OP_BIND ], &rs->sr_text );
|
||||
li->li_uri_mutex_do_not_lock = 0;
|
||||
ldap_pvt_thread_mutex_unlock( &li->li_uri_mutex );
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||
|
|
@ -1642,7 +1642,7 @@ ldap_back_default_rebind( LDAP *ld, LDAP_CONST char *url, ber_tag_t request,
|
|||
const char *text = NULL;
|
||||
|
||||
rc = ldap_back_start_tls( ld, 0, &is_tls, url, lc->lc_flags,
|
||||
lc->lc_ldapinfo->li_timeout[ SLAP_OP_EXTENDED ], &text );
|
||||
lc->lc_ldapinfo->li_timeout[ SLAP_OP_BIND ], &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue