[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Using TLS



--On Monday, June 26, 2017 4:59 PM +0000 Daniel Le <daniel.le@exfo.com> wrote:

int opt;
opt = LDAP_OPT_X_TLS_NEVER;
ldap_set_option(NULL, LDAP_OPT_X_TLS_REQUIRE_CERT, &opt);

-And-

int new_ctx = 0;
ldap_set_option(ld, LDAP_OPT_X_TLS_NEWCTX, &new_ctx);

Hi Daniel,

This case is specifically tested in my TLS test suite in test067. It works correctly, as expected. I would note that I use ldap_int_tls_config (RE24)/ldap_pvt_tls_config (2.5/master) for setting LDAP_OPT_X_TLS_REQUIRE_CERT rather than ldap_set_option.

--Quanah



--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>