mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-17 17:48:20 -05:00
ITS#8427 Only do StartTLS if configured
This commit is contained in:
parent
5e8aa3f6d1
commit
02df0b485a
2 changed files with 2 additions and 8 deletions
|
|
@ -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 a new issue