diff --git a/install/assets/functions/10-openldap b/install/assets/functions/10-openldap index fa6d915..f295b4b 100755 --- a/install/assets/functions/10-openldap +++ b/install/assets/functions/10-openldap @@ -548,8 +548,8 @@ EOF for replhost in $replhosts; do sed -i \ -e "s|{{REPLICATION_HOSTS}}|olcServerID: $i $replhost\n{{REPLICATION_HOSTS}}|g" \ - -e "s|{{REPLICATION_HOSTS_CONFIG_SYNC_REPL}}|olcSyncRepl: rid=00$i provider=$replhost ${REPLICATION_CONFIG_SYNCPROV:-"binddn=\"cn=config\" bindmethod=simple credentials=$CONFIG_PASS searchbase=\"cn=config\" type=refreshAndPersist retry=\"5 5 60 +\" timeout=1 filter=\"(!(objectclass=olcGlobal))\""}\n|g" \ - -e "s|{{REPLICATION_HOSTS_DB_SYNC_REPL}}|olcSyncRepl: rid=10$i provider=$replhost ${REPLICATION_DB_SYNCPROV:-"binddn=\"cn=admin,$BASE_DN\" bindmethod=simple credentials=$ADMIN_PASS searchbase=\"$BASE_DN\" type=refreshAndPersist interval=00:00:00:10 retry=\"5 5 60 +\" timeout=1"}\n|g" \ + -e "s|{{REPLICATION_HOSTS_CONFIG_SYNC_REPL}}|olcSyncRepl: rid=00$i provider=$replhost ${REPLICATION_CONFIG_SYNCPROV:-"binddn=\"cn=config\" bindmethod=simple credentials=$CONFIG_PASS searchbase=\"cn=config\" type=refreshAndPersist retry=\"5 5 60 +\" timeout=1 filter=\"(!(objectclass=olcGlobal))\""}\n{{REPLICATION_HOSTS_CONFIG_SYNC_REPL}}|g" \ + -e "s|{{REPLICATION_HOSTS_DB_SYNC_REPL}}|olcSyncRepl: rid=10$i provider=$replhost ${REPLICATION_DB_SYNCPROV:-"binddn=\"cn=admin,$BASE_DN\" bindmethod=simple credentials=$ADMIN_PASS searchbase=\"$BASE_DN\" type=refreshAndPersist interval=00:00:00:10 retry=\"5 5 60 +\" timeout=1"}\n{{REPLICATION_HOSTS_DB_SYNC_REPL}}|g" \ /assets/slapd/config/replication/replication-enable.ldif ((i++)) done