LDAP clients are governed by options set in the ways listed below with later methods overriding earlier ones.
$LDAPNOINIT
/etc/openldap/ldap.conf
$HOME
/ldaprc
,
$HOME
/.ldaprc
,
./ldaprc
$LDAPCONF
/etc/openldap/ldap.conf
$HOME
/$LDAPRC
,
$HOME
/.$LDAPRC
,
./$LDAPRC
$HOME
/ldaprc
Additional resources:
at the command line: man ldap.conf
at the command line: ldapsearch -?