ofreax 10 anni fa
parent
commit
2943fc64b1

+ 1 - 1
image/env.yml

@@ -12,7 +12,7 @@ SSL_CRT_FILENAME: ldap.crt
 SSL_KEY_FILENAME: ldap.key
 SSL_CA_CRT_FILENAME: ca.crt
 
-
+USE_REPLICATION: false
 REPLICATION_SERVER_ID: 1
 REPLICATOR_DN: cn=replicator,dc=example,dc=org
 REPLICATOR_PASSWORD: replicator

+ 0 - 0
image/service/slapd/assets/config/bootstrap/index.ldif → image/service/slapd/assets/config/bootstrap/ldif/index.ldif


+ 0 - 0
image/service/slapd/assets/config/bootstrap/logging.ldif → image/service/slapd/assets/config/bootstrap/ldif/logging.ldif


+ 0 - 0
image/service/slapd/assets/config/bootstrap/security.ldif → image/service/slapd/assets/config/bootstrap/ldif/security.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/repl-bdd-disable.ldif → image/service/slapd/assets/config/replication/backup/repl-bdd-disable.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/repl-bdd-enable.ldif → image/service/slapd/assets/config/replication/backup/repl-bdd-enable.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/repl-config-disable.ldif → image/service/slapd/assets/config/replication/backup/repl-config-disable.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/repl-config-enable.ldif → image/service/slapd/assets/config/replication/backup/repl-config-enable.ldif


+ 4 - 0
image/service/slapd/assets/config/replication/backup/repl-enable.ldif

@@ -0,0 +1,4 @@
+dn: cn=module,cn=config
+objectClass: olcModuleList
+cn: module
+olcModuleLoad: syncprov.la

+ 0 - 0
image/service/slapd/assets/config/replication/repl-module-enable.ldif → image/service/slapd/assets/config/replication/backup/repl-module-enable.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/repl-user-disable.ldif → image/service/slapd/assets/config/replication/backup/repl-user-disable.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/repl-user-enable.ldif → image/service/slapd/assets/config/replication/backup/repl-user-enable.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/replication-enable.ldif → image/service/slapd/assets/config/replication/backup/replication-enable.ldif


+ 0 - 0
image/service/slapd/assets/config/replication/repl-disable.ldif


+ 15 - 4
image/service/slapd/assets/config/replication/repl-enable.ldif

@@ -1,4 +1,15 @@
-dn: cn=module,cn=config
-objectClass: olcModuleList
-cn: module
-olcModuleLoad: syncprov.la
+# add replicator user
+dn: $REPLICATOR_DN
+cn: replicator
+sn: user
+objectClass: person
+userPassword: $REPLICATOR_PASSWORD
+
+dn: $REPLICATOR_DN
+changetype: add
+objectClass: top
+objectClass: person
+cn: synchronisator
+sn: synchronisator
+description: LDAP synchronisator
+userPassword: {SSHA}hAUGoGZEFAyJnZg/Q/aTWGnpdDv9edCh