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

ldap.conf location help



Hi,
 
   I am trying to make a client which will query users via an LDAP server.Now in the code I use TLS to encrypt the session.
 
Using TLS , I face a problem that the client is unable to verify the server certificate.
 
Connect error(-11) ssl error(1490086).
 
When I use ldapsearch to do that it works fine.I have LDAP server on the same machine and running via loopback.
 
I figured this problem is due to location of ldap.conf file as when I changed the entry of TLS_CACERT in the ldap.conf file (commented it out) the ldapsearch also failed which shows it is unable to locate the certificate.
 
Is there any way to make sure that the client tools always find the correct ldap.conf file?
 
Please help.
 
Sankhadip