aboutsummaryrefslogtreecommitdiffstats
path: root/ldap/index.ldif
blob: 6d7089a2eb0064a9a9ef8b045cd288c9d9ce196e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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
-
# Let us make Postfix's job easier.
add: olcDbIndex
olcDbIndex: fripostIsStatusActive,fvd,fvu,fva,fvml,fripostMLCommand,fripostMLManager eq
-
# Let us make Postfix's job easier.
add: olcDbIndex
olcDbIndex: fripostOptionalMaildrop pres
-
# SyncProv/SyncRepl specific indexing
add: olcDbIndex
olcDbIndex: entryCSN,entryUUID eq