Here is an example of setting up mirror mode Syncrepl from the Admin guide:
18.3.4.1. Mirror Node Configuration <> The first step is to configure the syncrepl provider the same as in the Set up the provider slapd <https://www.openldap.org/devel/admin/replication.html#Set up the provider slapd> section.
Here's a specific cut down example using LDAP Sync Replication <https://www.openldap.org/devel/admin/replication.html#LDAP Sync Replication> in refreshAndPersist mode:
MirrorMode node 1:
# Global section serverID 1 # database section
# syncrepl directive syncrepl rid=001 provider=ldap://ldap-sid2.example.com bindmethod=simple binddn="cn=mirrormode,dc=example,dc=com" credentials=mirrormode searchbase="dc=example,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
mirrormode on MirrorMode node 2:
# Global section serverID 2 # database section
# syncrepl directive syncrepl rid=001 provider=ldap://ldap-sid1.example.com bindmethod=simple binddn="cn=mirrormode,dc=example,dc=com" credentials=mirrormode searchbase="dc=example,dc=com" schemachecking=on type=refreshAndPersist retry="60 +"
mirrormode on
On Jun 16, 2020, at 8:28 AM, Kumar Rahul rahul2002mit@gmail.com wrote:
Hi Scott
Here are olcSyncrepl options we are using
0}rid=001 provider=ldap://<IP>:389 type=refreshAndPersist retry="2 10 60 +" searchbase="dc=smartsan" scope=sub attrs="*,+" bindmethod=simple binddn="cn=admin,dc=smartsan" credentials=<Password> timeout=1