aboutsummaryrefslogtreecommitdiffstats
path: root/ldap/syncrepl.ldif
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/syncrepl.ldif')
-rw-r--r--ldap/syncrepl.ldif33
1 files changed, 33 insertions, 0 deletions
diff --git a/ldap/syncrepl.ldif b/ldap/syncrepl.ldif
new file mode 100644
index 0000000..6b9c378
--- /dev/null
+++ b/ldap/syncrepl.ldif
@@ -0,0 +1,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=FripostVirtualML))(fripostIsStatusActive=TRUE))"
+attrs="fripostIsStatusActive,fripostMaildrop,fvd,fvu,fva,fvml,fripostMLCommand,fripostMLManager"
+scope=sub
+schemachecking=off
+