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 ?
thank you
####################################################################### # 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/
Maily Peng wrote:
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.
suffix "ou=users,dc=domain,dc=net" rootdn "cn=Manager,dc=domain,dc=net" [..] suffix "ou=profiles,dc=domain,dc=net" rootdn "cn=Manager,dc=domain,dc=net"
Note that the rootdn in each database has to be within this particular naming context like this:
database mdb suffix "ou=users,dc=domain,dc=net" rootdn "cn=Manager,ou=users,dc=domain,dc=net" [..] database mdb suffix "ou=profiles,dc=domain,dc=net" rootdn "cn=Manager,ou=profiles,dc=domain,dc=net"
The rootdn has only manage privilegs (no ACLs are in effect) in its own DB.
Ciao, Michael.
--On Tuesday, January 27, 2015 1:17 PM +0100 Maily Peng mpeng@keyyo.com wrote:
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, but what makes you think it is really more efficient?
--Quanah
--
Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
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
openldap-technical@openldap.org