From ded29bf9eb3fa40c56eb9ace365d13e6348e215c Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 20 Aug 2012 01:53:16 +0200 Subject: A little test suite for LDAP ACLs. --- ldap/syncrepl.ldif | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 ldap/syncrepl.ldif (limited to 'ldap/syncrepl.ldif') 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 + -- cgit v1.2.3