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

Re: ldap.conf between /etc/openldap or /etc/openldap2.3?

On Thu, 13 Dec 2007, R.B. wrote:
I'm using the Buchan RPMs (openldap 2.3.39) for RHEL4 and it creates
an /etc/openldap2.3 directory. I also have the base openldap (2.2.x)
rpms installed (originally) and it creates the base /etc/openldap

After doing an strace, I see that /etc/openldap/ldap.conf is used....
but I want use /etc/openldap2.3/ldap.conf file, how do I switch my
ldap client to look here?

To quote the ldap.conf(5) manpage:

       Additional configuration files can be specified using  the
       LDAPCONF  and  LDAPRC environment variables.  LDAPCONF may
       be set to the path of a configuration file.  This path can
       be  absolute or relative to the current working directory.
       The LDAPRC, if defined, should be the basename of  a  file
       in  the  current  working  directory or in the user's home

Note $LDAPCONF and $LDAPRC are read _after_ the compiled in paths are read. There is no way to stop the client from reading the compiled in paths. If you want that, you have to rebuild the clients from scratch with extra configure options to change the paths. It looks like you would need:
--sysconfdir=/etc --with-subdir=openldap2.3

...but I've never used --with-subdir, so I may be misreading things...

Philip Guenther