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

Re: ldap_search base for multiple databases problem

At 01:32 PM 6/2/00 +0200, yanar@gmx.net wrote:
>i'm using multiple ldbm databases for virtual domains (in slapd.conf).
>since this part is working i have a problem with the ldap.conf setting
>"base" - i can only use one virtual domain and for the others i get an
>ldap_search_s (error-13?) trying to connect.
>is there a way to configure ldap.conf to use multiple bases or to define
>the base out of the request (request for foobar.com -> use base

A search operation has a base.  ldap.conf provides a default.
So, if you want one search to return information in multiple
trees, select a common superior base.  Of course, that common
superior base must have knowledge of its subordinates.

>and if not, has someone a hint how to create a common base for multiple
>ldbm databases?

Build a tree.

database ldbm
suffix "ou=subtreeA,dc=example,dc=net"

database ldbm
suffix "ou=subtreeB,dc=example,dc=net"

database ldbm
suffix "dc=example,dc=net"

Then, if you want to search both A and B, use a search
base of "dc=example,dc=net" (after adding appropriate
referral DSEs under "dc=example,dc=net".