{
LDAPURLDesc *lud = NULL;
char *host = NULL;
- int rc, proto, tls;
+ int rc, proto, tls = b->b_tls_conf;
/* Effect no changes until we've checked everything */
return -1;
}
- tls = ldap_pvt_url_scheme2tls( lud->lud_scheme );
- if ( tls ) {
+ if ( ldap_pvt_url_scheme2tls( lud->lud_scheme ) ) {
#ifdef HAVE_TLS
/* Specifying ldaps:// overrides starttls= settings */
tls = LLOAD_LDAPS;
{ BER_BVC("max-pending-ops="), offsetof(LloadBackend, b_max_pending), 'i', 0, NULL },
{ BER_BVC("conn-max-pending="), offsetof(LloadBackend, b_max_conn_pending), 'i', 0, NULL },
- { BER_BVC("starttls="), offsetof(LloadBackend, b_tls), 'i', 0, tlskey },
+ { BER_BVC("starttls="), offsetof(LloadBackend, b_tls_conf), 'i', 0, tlskey },
{ BER_BVNULL, 0, 0, 0, NULL }
};
c->value_uint = b->b_max_pending;
break;
case CFG_STARTTLS:
- enum_to_verb( tlskey, b->b_tls, &c->value_bv );
+ enum_to_verb( tlskey, b->b_tls_conf, &c->value_bv );
break;
default:
rc = 1;
* attributes */
switch ( c->type ) {
case CFG_STARTTLS:
- b->b_tls = LLOAD_CLEARTEXT;
+ b->b_tls_conf = LLOAD_CLEARTEXT;
break;
default:
break;
Debug( LDAP_DEBUG_ANY, "%s: %s\n", c->log, c->cr_msg );
return 1;
}
- b->b_tls = tlskey[i].mask;
+ b->b_tls_conf = tlskey[i].mask;
} break;
default:
rc = 1;