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

Re: ldap_tls call failed: Can't contact LDAP server

Run your openldap server with debugging turned on (-d option) and check the output. Read the man slapd.conf for the different values of the -d flag and then see if you see why your connection is failing. Post those results here if you don't see the obvious root cause.


On Jan 16, 2008, at 1:37 AM, Digambar Sawant wrote:


I want to establish secure ldap connection.
I have tried following:

1. ldap_init
2. ldap_set_option( pLdapObj, LDAP_OPT_X_TLS_CACERTFILE, "/tmp/ certficate.cert"
3. iRetCode = ldap_start_tls_s(pLdapObj, NULL, NULL);

Here 3. ldap_start_tls_s failed with error: "Can't contact LDAP server".

What is wrong here? Are there any more steps to make it work?
Please help me.


Chris G. Sellers			|	NITLE Technology
734.661.2318			|	chris.sellers@nitle.org
AIM: imthewherd			|	GTalk: cgseller@gmail.com