It varies on the system or OS one is using.2.4.12 implementation looks at a few of these paths
 
/etc/openldap/ldap.conf
/etc/ldap.conf
/ldaprc
./ldaprc
 
any where you place will be good to go.
 
Sankhadip
----- Original Message -----
From: Santosh Kumar
To: openldap-technical
Sent: Thursday, March 12, 2009 6:50 AM
Subject: API to read config file before ldap_search.

Dear friends,

looking to where we could specify config file path to be read by  ldapsearch.c  to /openldap/ldap.conf 

will be trying to pass the query to ldapclient and obtain the result.
 should we write program starting from ldap_open , ldap_init, ldap_bind , ldap_search
  or
 its suffice only by modifying ldapsearch.c.


Regards
Santosh




Moneywiz