[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Different DIT on separate database
Am Tue, 27 Jan 2015 13:17:33 +0100
schrieb Maily Peng <mpeng@keyyo.com>:
> Hello,
>
> I'd like to set up a single instance of slapd from two DIT that have
> been defined in separate mdb databases in order to manage more
> efficiently indexes.
> Is-it possible ?
Yes, it is possible.
>
> #######################################################################
> # mdb primary database definitions
> #######################################################################
> backend mdb
> database mdb
> suffix "ou=users,dc=domain,dc=net"
> rootdn "cn=Manager,dc=domain,dc=net"
> envflags writemap,nometasync
>
> lastmod on
>
> rootpw
>
> directory /usr/local/var/users-data/
>
> #######################################################################
> # mdb second database definitions
> #######################################################################
> backend mdb
> database mdb
> suffix "ou=profiles,dc=domain,dc=net"
> rootdn "cn=Manager,dc=domain,dc=net"
> envflags writemap,nometasync
>
> lastmod on
>
> rootpw
>
> directory /usr/local/var/profile-data/
You have several choices:
1. create a primary database with suffix dc=domain,dc=net and attach
the other databases as subordinate databases.
2. attach this 2 databases to a meta backend.
3. you may have a look at man slapd-relay(5).
But none of these have any influence on index efficiency.
-Dieter
--
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E