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

RE: one slapd to multiple ldbm's



Kurt,

I tried this with partial success.  The problem is that clients now see
three separate trees i.e.

  dc=com      dc=com      dc=com
     |           |          |
  dc=foo      dc=foo      dc=foo
     |           |
 ou=people   ou=devices

instead of one tree which was what I was expecting i.e.

                dc=com
                  |
                dc=foo
               /      \
           ou=people  ou=devices

Is this the expected behavior or am I doing something wrong?

Thanks,
Mark


-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Kurt D.
Zeilenga
Sent: Wednesday, September 20, 2000 8:52 PM
To: markwhitehouse@home.com
Cc: openldap
Subject: 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