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.RegardsSantosh