File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 186186 for f in $( find ${CONTAINER_SERVICE_DIR} /slapd/assets/config/bootstrap/ldif -mindepth 1 -maxdepth 1 -type f -name \* .ldif | sort) ; do
187187 log-helper debug " Processing file ${f} "
188188 sed -i " s|{{ LDAP_BASE_DN }}|${LDAP_BASE_DN} |g" $f
189+ sed -i " s|{{ LDAP_BACKEND }}|${LDAP_BACKEND} |g" $f
189190 ldapmodify -Y EXTERNAL -Q -H ldapi:/// -f $f 2>&1 | log-helper debug || ldapmodify -h localhost -p 389 -D cn=admin,$LDAP_BASE_DN -w $LDAP_ADMIN_PASSWORD -f $f 2>&1 | log-helper debug
190191 done
191192
282283 #
283284
284285 function disableReplication() {
286+ sed -i " s|{{ LDAP_BACKEND }}|${LDAP_BACKEND} |g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-disable.ldif
285287 ldapmodify -c -Y EXTERNAL -Q -H ldapi:/// -f ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-disable.ldif 2>&1 | log-helper debug || true
286288 [[ -f " $WAS_STARTED_WITH_REPLICATION " ]] && rm -f " $WAS_STARTED_WITH_REPLICATION "
287289 }
310312 sed -i " /{{ LDAP_REPLICATION_HOSTS_CONFIG_SYNC_REPL }}/d" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
311313 sed -i " /{{ LDAP_REPLICATION_HOSTS_DB_SYNC_REPL }}/d" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
312314
315+ sed -i " s|{{ LDAP_BACKEND }}|${LDAP_BACKEND} |g" ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif
316+
313317 ldapmodify -c -Y EXTERNAL -Q -H ldapi:/// -f ${CONTAINER_SERVICE_DIR} /slapd/assets/config/replication/replication-enable.ldif 2>&1 | log-helper debug || true
314318
315319 [[ -f " $WAS_STARTED_WITH_REPLICATION " ]] && rm -f " $WAS_STARTED_WITH_REPLICATION "
You can’t perform that action at this time.
0 commit comments