From dcbd4ede2f320df9264a138685a2214bfa1ef6a1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 16 Sep 2013 14:14:10 -0700 Subject: Fix OpenLDAP partition configs Update to use LMDB backend, BDB is deprecated Update to support DomainDNSZones and ForestDNSZones partitions. Signed-off-by: Howard Chu Reviewed-by: Andrew Bartlett --- source4/setup/slapd.conf | 53 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) (limited to 'source4/setup/slapd.conf') diff --git a/source4/setup/slapd.conf b/source4/setup/slapd.conf index c2d92eca39..2eb65a3773 100644 --- a/source4/setup/slapd.conf +++ b/source4/setup/slapd.conf @@ -81,12 +81,13 @@ access to dn.sub="cn=config" ######################################## ### cn=schema ### -database hdb +database mdb suffix ${SCHEMADN} rootdn cn=Manager,${SCHEMADN} directory ${LDAPDIR}/db/schema ${NOSYNC} ${INDEX_CONFIG} +maxsize 1073741824 #syncprov is stable in OpenLDAP 2.3, and available in 2.2. #We need this for the contextCSN attribute and mmr. @@ -102,12 +103,13 @@ ${MIRRORMODE} ######################################### ### cn=config ### -database hdb +database mdb suffix ${CONFIGDN} rootdn cn=Manager,${CONFIGDN} directory ${LDAPDIR}/db/config ${NOSYNC} ${INDEX_CONFIG} +maxsize 1073741824 #syncprov is stable in OpenLDAP 2.3, and available in 2.2. #We need this for the contextCSN attribute and mmr. @@ -121,14 +123,59 @@ overlay rdnval ${MMR_SYNCREPL_CONFIG_CONFIG} ${MIRRORMODE} +######################################## +### domaindns +database mdb +suffix dc=domaindnszones,${DOMAINDN} +rootdn cn=Manager,${DOMAINDN} +directory ${LDAPDIR}/db/domaindns +${NOSYNC} +${INDEX_CONFIG} +maxsize 1073741824 + +#syncprov is stable in OpenLDAP 2.3, and available in 2.2. +#We need this for the contextCSN attribute and mmr. +overlay syncprov +syncprov-sessionlog 100 +syncprov-checkpoint 100 10 + +overlay rdnval + +### Multimaster-Replication of domainDNS context ### +${MMR_SYNCREPL_DOMAINDNS_CONFIG} +${MIRRORMODE} + +######################################## +### forestdns ### +database mdb +suffix dc=forestdnszones,${DOMAINDN} +rootdn cn=Manager,${DOMAINDN} +directory ${LDAPDIR}/db/forestdns +${NOSYNC} +${INDEX_CONFIG} +maxsize 1073741824 + +#syncprov is stable in OpenLDAP 2.3, and available in 2.2. +#We need this for the contextCSN attribute and mmr. +overlay syncprov +syncprov-sessionlog 100 +syncprov-checkpoint 100 10 + +overlay rdnval + +### Multimaster-Replication of forestDNS context ### +${MMR_SYNCREPL_FORESTDNS_CONFIG} +${MIRRORMODE} + ######################################## ### cn=users /base-dn ### -database hdb +database mdb suffix ${DOMAINDN} rootdn cn=Manager,${DOMAINDN} directory ${LDAPDIR}/db/user ${NOSYNC} ${INDEX_CONFIG} +maxsize 1073741824 #syncprov is stable in OpenLDAP 2.3, and available in 2.2. #We need this for the contextCSN attribute and mmr. -- cgit