aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openldap/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openldap/templates')
-rw-r--r--modules/openldap/templates/slapd.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/openldap/templates/slapd.conf b/modules/openldap/templates/slapd.conf
index eda97611..3848e78b 100644
--- a/modules/openldap/templates/slapd.conf
+++ b/modules/openldap/templates/slapd.conf
@@ -31,7 +31,11 @@ argsfile /var/run/ldap/slapd.args
modulepath <%= lib_dir %>/openldap
<% if scope.function_versioncmp([lsbdistrelease, '4']) >= 0 %>
+<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
moduleload back_bdb.la
+<% else
+moduleload back_mdb.la
+<% end %>
<% end %>
moduleload back_monitor.la
moduleload syncprov.la
@@ -62,17 +66,23 @@ access to dn.subtree="cn=Monitor"
by group.exact="cn=LDAP Admins,ou=System Groups,<%= dc_suffix %>" read
by * none
+<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
database bdb
+<% else %>
+database mdb
+<% end %>
suffix "<%= dc_suffix %>"
directory /var/lib/ldap
rootdn "cn=manager,<%= dc_suffix %>"
checkpoint 256 5
+<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
# 32Mbytes, can hold about 10k posixAccount entries
dbconfig set_cachesize 0 33554432 1
dbconfig set_lg_bsize 2097152
cachesize 1000
idlcachesize 3000
+<% end %>
index objectClass eq
index uidNumber,gidNumber,memberuid,member,owner eq