Issue 8403 - LDAP connection issue
Summary: LDAP connection issue
Status: VERIFIED DUPLICATE of issue 8410
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.39
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-14 07:16 UTC by kobibe0@gmail.com
Modified: 2020-03-22 21:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kobibe0@gmail.com 2016-04-14 07:16:27 UTC
Full_Name: kobi beifus
Version: 2.4.39
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (195.110.40.242)


Hi,

I have an issue with LDAP connection over SSL from code.
Using ldapsearch 2.4.20, the connection success.
Using ldapsearch 2.4.39, it failed.

The code does the following:
    ldap_initialize

    int version = LDAP_VERSION3;
    ldap_set_option(*ld, LDAP_OPT_NETWORK_TIMEOUT, &tv);
    ldap_set_option(*ld, LDAP_OPT_PROTOCOL_VERSION, &version);
    ldap_set_option(*ld, LDAP_OPT_REFERRALS, LDAP_OPT_OFF);
    int zero = 0;
    int tls_minimum_version = LDAP_OPT_X_TLS_PROTOCOL_TLS1_0;
    ldap_set_option(*ld, LDAP_OPT_X_TLS_PROTOCOL_MIN, &tls_minimum_version);
    ldap_set_option(*ld, LDAP_OPT_X_TLS_CACERTFILE, "/var/ldap/ldap.pem");
    ldap_set_option(*ld, LDAP_OPT_X_TLS_NEWCTX, &zero);

    ldap_sasl_bind_s

Do you know if the configuration need to be changed?
Comment 1 Quanah Gibson-Mount 2017-03-22 16:44:26 UTC
published 8403
marked public
Comment 2 Quanah Gibson-Mount 2020-03-22 21:25:23 UTC

*** This issue has been marked as a duplicate of issue 8410 ***