Syncrepl RefreshOnly Style replication
Theory
Slave LDAP server - ldap1.fireblade.com - Consumer
In Provider LDAP ldap-master.fireblade.com configuration ile add the below configuration and save.
In Consumer LDAP ldap1.fireblade.com configuration add the below configuration and save.
Restart ldap service in both Consumer and provider.
Test the configuration by creating a new entry in the Provider.
Theory
In refreshOnly type of replication the consumer (1) initiates a connection (2) with the provider (2) - synchronization of DITs takes places and the connection is broken. Periodically the consumer (1) re-connects (2) with the provider (3) and re-synchronizes. refreshOnly synchronization may be viewed as operating in burst mode and the replication cycle time is the time between re-connections.Master LDAP server - ldap-master.fireblade.com - Provider
Slave LDAP server - ldap1.fireblade.com - Consumer
In Provider LDAP ldap-master.fireblade.com configuration ile add the below configuration and save.
# NOTE: # the provider configuration contains no reference to any consumers
# define the provider to use the syncprov overlay # (last directives in database section) overlay syncprov # allows contextCSN to saves to database every 100 updates or ten minutes syncprov-ch syncprov-checkpoint 100 10
In Consumer LDAP ldap1.fireblade.com configuration add the below configuration and save.
# provider is ldap://master-ldap.example.com:389, sync interval # every 1 hour, whole DIT (searchbase), all user attributes synchronized # simple security with cleartext password # NOTE: comments inside the syncrepl directive are rejected by OpenLDAP # and are included only to carry further explanation. They MUST NOT # appear in an operational file syncrepl rid=000 provider=ldap://ldap-master.fireblade.com type=refreshOnly #re-connect/re-sync every hour interval=00:1:00:00 retry="5 5 300 +" searchbase="dc=example,dc=com" #both user (*) and operational (+) attributes required attrs="*,+" bindmethod=simple binddn="cn=Manager,dc=fireblade,dc=com" #Warning: password sent in clear - insecure credentials=dirtysecret
Restart ldap service in both Consumer and provider.
# service ldap restart
Test the configuration by creating a new entry in the Provider.
No comments:
Post a Comment