summaryrefslogtreecommitdiff
path: root/source4/setup
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2013-09-16 14:14:10 -0700
committerNadezhda Ivanova <nivanova@samba.org>2013-09-17 05:56:56 +0200
commitdcbd4ede2f320df9264a138685a2214bfa1ef6a1 (patch)
tree5abae01b423930bbb728b447daa1a0a59496411a /source4/setup
parentf2bccebd913f023e3d99282be4e831d012cd3578 (diff)
downloadsamba-dcbd4ede2f320df9264a138685a2214bfa1ef6a1.tar.gz
samba-dcbd4ede2f320df9264a138685a2214bfa1ef6a1.tar.bz2
samba-dcbd4ede2f320df9264a138685a2214bfa1ef6a1.zip
Fix OpenLDAP partition configs
Update to use LMDB backend, BDB is deprecated Update to support DomainDNSZones and ForestDNSZones partitions. Signed-off-by: Howard Chu <hyc@symas.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/setup')
-rw-r--r--source4/setup/slapd.conf53
1 files changed, 50 insertions, 3 deletions
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.
@@ -122,13 +124,58 @@ ${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.