[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap_tls call failed: Can't contact LDAP server
- To: Digambar Sawant <digambar49@gmail.com>
- Subject: Re: ldap_tls call failed: Can't contact LDAP server
- From: Gavin Henry <ghenry@suretecsystems.com>
- Date: Fri, 01 Feb 2008 20:22:21 +0000
- Cc: Buchan Milne <bgmilne@staff.telkomsa.net>, openldap-software@openldap.org
- In-reply-to: <29dd6fdb0801231948g38706ed9g1b41bc3b29090777@mail.gmail.com>
- Organization: Suretec Systems Ltd.
- References: <29dd6fdb0801152237q5245b01eo530223770e4109e7@mail.gmail.com> <7CA44DA7-45D9-41E5-A015-9EED7F5B9E91@nitle.org> <29dd6fdb0801160606x47981213mf72b93736b886757@mail.gmail.com> <200801171502.43705.bgmilne@staff.telkomsa.net> <29dd6fdb0801231948g38706ed9g1b41bc3b29090777@mail.gmail.com>
- User-agent: Thunderbird 2.0.0.9 (X11/20071031)
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.
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?