4. Notes about linux distributions

The configuration described in this document will assume you compiled and installed OpenLDAP 2.2.30 manually like shown above.

If you specified a different --prefix option, or if you used the packages of your distribution, in all the following examples always remember that:

/usr/local/openldap/etc/openldap

is the directory where all configurations are kept. In this directory, you can find the configuration files (slapd.conf, ldap.conf, ...), the schema files (directory schema/) and a couple other interesting files. On most linux distributions, if you used the provided packages, it corresponds to /etc/ldap/.

/usr/local/openldap/libexec/

is the directory where the slapd and slurpd daemons have been installed. Usually, it corresponds to /usr/sbin.

/usr/local/openldap/bin/

is the directory where all command line tools to access a LDAP directory have been installed (ldapadd, ldapsearch, ...). Usually, it corresponds to /usr/bin.

/usr/local/openldap/sbin/

is the directory where all the administrative tools have been installed (slapcat, slapadd, ...). Usually, it corresponds to /usr/sbin.

/usr/local/openldap/var/openldap-data/

is the directory where your database files are kept. On most linux distributions, it corresponds to /var/lib/ldap/, but you can guess it by looking to your slapd.conf configuration file and to the "directory" parameter.

So, make sure to change the examples as required by the parameters you provided to the configure scripts or to the default setup of you linux distribution.