[Date Prev][Date Next]
RE: Multiples instances Ldap
> I´d like to know if is posible up more than one instance with more than
> one database. How could I do it?
Yes, you can do this. The trick is to use separate configuration files,
different listener ports, and (of course) keep the databases in different
file system directories. For example, create two slapd.conf files,
slapd.1.conf and slapd.2.conf. Each one can define whatever databases it
wants in whatever directories it wants, provided they don't overlap with
database directories in the other slapd.conf file.
You would then start the first slapd as follows:
<path to slapd>/slapd -h ldap:/// -f <path to conf file>/slapd.1.conf
and start a second one as follows:
<path to slapd>/slapd -h ldap://:9010 <path to conf file>/slapd.2.conf
The first slapd will be listening on the default ldap port, port 389.
Because only one process can listen on a port, it is necessary to start the
second slapd on a different port, in this example port 9010.
You would then have two fully independent slapd processes with their own
suffixes and databases.
Hope this helps...
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
> Exist any documentation for this?
This can all be inferred from the OpenLDAP Admin guide, although admittedly
it doesn't jump out at you. The other place to look for examples of this is
in the test scripts directory.