--On Wednesday, January 30, 2019 1:44 AM -0500 Vernon Smith 
<[email protected]> wrote:

> I Tried to upload it to the openldap ftp server but was not successful so
> I am trying the patch again here.
>
> diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c
> index bb81d86..20b3dfc 100644
> --- a/libraries/libldap/open.c
> +++ b/libraries/libldap/open.c
> @@ -489,7 +489,7 @@ ldap_int_open_connection(
>  #endif
>
>  #ifdef HAVE_TLS
> -     if (rc == 0 && ( ld->ld_options.ldo_tls_mode == LDAP_OPT_X_TLS_HARD ||
> +     if ((rc == 0 || rc == -2) && ( ld->ld_options.ldo_tls_mode ==
> LDAP_OPT_X_TLS_HARD ||                strcmp( srv->lud_scheme, "ldaps" ) == 0 
> ))
>       {
>               ++conn->lconn_refcnt;   /* avoid premature free */

That worked, thanks!

--Quanah



--

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




Reply via email to