mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#8427 Only do StartTLS if configured
This commit is contained in:
parent
5e8aa3f6d1
commit
02df0b485a
@ -227,10 +227,7 @@ asyncmeta_init_one_conn(
|
||||
bindconf_tls_set( sb, msc->msc_ld );
|
||||
|
||||
if ( !is_ldaps ) {
|
||||
if ( sb == &mt->mt_idassert.si_bc && sb->sb_tls_ctx ) {
|
||||
do_start_tls = 1;
|
||||
|
||||
} else if ( META_BACK_TGT_USE_TLS( mt )
|
||||
if ( META_BACK_TGT_USE_TLS( mt )
|
||||
|| ( op->o_conn->c_is_tls && META_BACK_TGT_PROPAGATE_TLS( mt ) ) )
|
||||
{
|
||||
do_start_tls = 1;
|
||||
|
@ -431,10 +431,7 @@ retry_lock:;
|
||||
bindconf_tls_set( sb, msc->msc_ld );
|
||||
|
||||
if ( !is_ldaps ) {
|
||||
if ( sb == &mt->mt_idassert.si_bc && sb->sb_tls_ctx ) {
|
||||
do_start_tls = 1;
|
||||
|
||||
} else if ( META_BACK_TGT_USE_TLS( mt )
|
||||
if ( META_BACK_TGT_USE_TLS( mt )
|
||||
|| ( op->o_conn->c_is_tls && META_BACK_TGT_PROPAGATE_TLS( mt ) ) )
|
||||
{
|
||||
do_start_tls = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user