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. 192.168.4.146 http://192.168.4.146 $ openssl x509 -noout -subject -in /etc/openldap/CERTS/servercrt.pem
Everything worked properly, when I tried following command: $ ldapsearch -x -H ldaps://192.168.4.146:636 -b "dc=my-domain, dc=com"
However, this is one option. I dont know why it is failing for other option i.e.
- ldap_init
- set ldap options
- start_tls
All this is done in C program. The error says Can't contact to Ldap server.
Got any code to show us?