aboutsummaryrefslogtreecommitdiffstats
path: root/ldap/syncrepl.ldif
blob: 6fe0d06c629063b49cb08852222277c97bc840f6 (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
# Load this file (on the consumer) with
#
#   ldapmodify -Y EXTERNAL -H ldapi:/// -f syncrepl.ldif
#
# It will load the "syncRepl" directive for the database #1. Ensure
# that it's indeed the database #1 that you want to configure:
#
#   ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b "cn=config" "olcSuffix=o=mailHosting,dc=fripost,dc=dev" dn
#
# 
# References:
# - http://www.openldap.org/doc/admin24/replication.html#Syncrepl
# - http://www.zytrax.com/books/ldap/ch7/#ol-syncrepl-rap

# TODO: Delta-syncrepl configuration? http://www.openldap.org/doc/admin24/replication.html#Delta-syncrepl

dn: olcDatabase={1}hdb,cn=config
changetype: modify
replace: olcSyncRepl
# Increase the rid for the different consumers
olcSyncRepl: rid=000
provider=ldap://127.0.0.1:3890
bindmethod=simple
binddn="cn=SMTP,ou=services,o=mailHosting,dc=fripost,dc=org"
credentials="xxxxxx"
type=refreshAndPersist
retry="5 5 300 +"
searchbase="ou=virtual,o=mailHosting,dc=fripost,dc=org"
filter="(&(|(objectClass=FripostVirtualDomain)(objectClass=FripostVirtualMailbox)(objectClass=FripostVirtualAlias)(objectClass=FripostVirtualList))(fripostIsStatusActive=TRUE))"
attrs="fripostIsStatusActive,fripostMaildrop,fripostOptionalMaildrop,fvd,fvu,fva,fvl,fripostListCommand,fripostListManager"
scope=sub
schemachecking=off