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

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

Digambar Sawant wrote:
Dear Buchan,
Thanks for helping me.
Here is what I tried and it worked.
During certificate creation, I used ip address instead of hostname.
That is why output of following command shows Ip address i.e. <>
$ openssl x509 -noout -subject -in /etc/openldap/CERTS/servercrt.pem
Everything worked properly, when I tried following command:
$ ldapsearch -x -H ldaps:// -b "dc=my-domain, dc=com"
However, this is one option.
I dont know why it is failing for other option i.e.
1. ldap_init
2. set ldap options
3. start_tls
All this is done in C program.
The error says Can't contact to Ldap server.

Got any code to show us?