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

Re: one slapd to multiple ldbm's



At 11:49 AM 9/20/00 -0700, Mark Whitehouse wrote:
>Is it possible with OpenLDAP 2.0.x to have one ldap server (slapd) writing
>to multiple ldbm backends, each of which represent a different LDAP subtree?

yes.

>i.e.
>
>    ou=people,dc=foo,dc=com    ----> ldbm #1  (/usr/local/ldapdb/db1)
>    ou=devices,dc=foo,dc=com   ----> ldbm #2  (/usr/local/ldapdb/db2)
>
>If so, is there any documentation on how to set this up?  I noticed a line
>or two in the admin manual (saying this was possible?) but no instructions.


like so:

database ldbm
suffix "ou=people,dc=foo,dc=com"
directory /var/ldbm/foo-people
index objectclass eq

database ldbm
suffix "ou=devices,dc=foo,dc=com"
directory /var/ldbm/foo-devices
index objectclass eq

database ldbm
suffix "dc=foo,dc=com"
directory /var/ldbm/foo
index objectclass eq