From 8bbec6135028b3ff10105d0727bc0239c02deb5a Mon Sep 17 00:00:00 2001 From: Benjamin Graillot Date: Tue, 28 Jul 2020 11:40:23 +0200 Subject: [PATCH] [slapd] Change replication settings --- roles/slapd/tasks/main.yml | 2 +- roles/slapd/templates/ldap/slapd.conf.j2 | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/slapd/tasks/main.yml b/roles/slapd/tasks/main.yml index f1ff8b87..111d98ff 100644 --- a/roles/slapd/tasks/main.yml +++ b/roles/slapd/tasks/main.yml @@ -21,7 +21,7 @@ owner: openldap group: openldap notify: Restart slapd - + - name: Deploy ldap services lineinfile: path: /etc/default/slapd diff --git a/roles/slapd/templates/ldap/slapd.conf.j2 b/roles/slapd/templates/ldap/slapd.conf.j2 index 95f92a54..3e539f01 100644 --- a/roles/slapd/templates/ldap/slapd.conf.j2 +++ b/roles/slapd/templates/ldap/slapd.conf.j2 @@ -112,10 +112,12 @@ syncrepl binddn="cn=replicator,dc=crans,dc=org" credentials=test1234 # TODO cranspasswords searchbase="dc=crans,dc=org" - schemachecking=on - type=refreshOnly - interval=00:00:10:00 scope=sub + schemachecking=on + type=refreshAndPersist + timeout=0 + network-timeout=0 + retry="30 20 300 +" tls_reqcert=allow {% endif %}