(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Configuration : (Category) General Client Configuration : (Answer) What ldap.conf does the OpenLDAP client library use?
The OpenLDAP client library, and clients using it, use the ldap.conf installed in $prefix/etc/openldap/, unless otherwise instructed. A file located in a different place can be used by creating it in the appropriate place and with the appropriate name, or by setting appropriate environment variables. To control detection and use of the LDAP configuration file, follow instructions in ldap.conf(5).

A common error consists in assuming that the OpenLDAP client library and OpenLDAP tools just use /etc/ldap.conf; this in general is incorrect, because by default the OpenLDAP package does not install nor use that file (unless instructed to do so; see configure --help to customize the location of data files).

Other packages, with little or no relation with OpenLDAP software, may install and use that file; you should by no means assume that that file is related to OpenLDAP.

[Append to This Answer]
ando@sys-net.it
Next: (Answer) How do I specify default base DN for clients?
This document is: http://www.openldap.org/faq/index.cgi?file=1315
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org