aboutsummaryrefslogtreecommitdiffstats
path: root/ldap/index.ldif
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2012-08-20 01:53:16 +0200
committerGuilhem Moulin <guilhem.moulin@fripost.org>2012-08-20 01:53:16 +0200
commitded29bf9eb3fa40c56eb9ace365d13e6348e215c (patch)
tree328d4a3fc3b9fd5e9d696df601bb193204565d8f /ldap/index.ldif
parentd7173895fa7c31b033c2bffd2fb43d1ffbe2159b (diff)
A little test suite for LDAP ACLs.
Diffstat (limited to 'ldap/index.ldif')
-rw-r--r--ldap/index.ldif44
1 files changed, 44 insertions, 0 deletions
diff --git a/ldap/index.ldif b/ldap/index.ldif
new file mode 100644
index 0000000..d5f31a5
--- /dev/null
+++ b/ldap/index.ldif
@@ -0,0 +1,44 @@
+# Load this file with
+#
+# ldapmodify -Y EXTERNAL -H ldapi:/// -f index.ldif
+#
+# It will remove existing indexes, and add the following instead. Ensure
+# that it's indeed the database #1 that you want to amend:
+#
+# ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b "cn=config" "olcSuffix=o=mailHosting,dc=fripost,dc=dev" dn
+#
+#
+# To reindex an existing database, you have to
+# * Stop slapd /etc/init.d/slapd stop
+# * Reindex su openldap -c "slapindex -b 'o=mailHosting,dc=fripost,dc=dev'"
+# * Restart slapd /etc/init.d/slapd start
+#
+#
+# References
+# - http://www.openldap.org/doc/admin24/tuning.html
+# - http://www.openldap.org/faq/data/cache/42.html
+# - http://www.openldap.org/faq/data/cache/136.html
+# - http://www.zytrax.com/books/ldap/apa/indeces.html
+
+
+dn: olcDatabase={1}hdb,cn=config
+changetype: modify
+replace: olcDbIndex
+olcDbIndex: objectClass eq
+-
+add: olcDbIndex
+olcDbIndex: fripostIsStatusActive eq
+-
+add: olcDbIndex
+olcDbIndex: fvd,fvu,fva,fvml,fripostMLCommand,fripostMLManager eq
+-
+add: olcDbIndex
+olcDbIndex: fripostMaildrop pres
+# ^ TODO: a presence index on fripostMaildrop is not optimal, as the
+# attribute is not very rare...
+# Having a different attribute for the virtualMailbox object class would
+# be better.
+-
+# synprov specific indexing (provider side)
+add: olcDbIndex
+olcDbIndex: entryCSN,entryUUID eq