forked from 389ds/389-ds-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring DS Replication with DS Tools
Endi S. Dewata edited this page Jul 22, 2023
·
15 revisions
This page describes the process to configure multi-supplier DS replication.
To enable replication on server1:
$ dsconf \ -D "cn=Directory Manager" \ -w Secret.123 \ ldap://server1.example.com \ replication enable \ --suffix=dc=example,dc=com \ --role=supplier \ --replica-id=1
To enable replication on server2:
$ dsconf \ -D "cn=Directory Manager" \ -w Secret.123 \ ldap://server2.example.com \ replication enable \ --suffix=dc=example,dc=com \ --role=supplier \ --replica-id=2 \ --bind-dn="cn=Replication Manager,cn=config" \ --bind-passwd=Secret.123
To start replication from server1 to server2:
$ dsconf \ -D "cn=Directory Manager" \ -w Secret.123 \ ldap://server1.example.com \ repl-agmt \ create \ --suffix=dc=example,dc=com \ --host=server2.example.com \ --port=636 \ --conn-protocol=LDAPS \ --bind-dn="cn=Replication Manager,cn=config" \ --bind-passwd=Secret.123 \ --bind-method=SIMPLE \ --init \ example-agreement-server1-to-server2
To check the initialization status:
$ dsconf \ -D "cn=Directory Manager" \ -w Secret.123 \ ldap://server1.example.com \ repl-agmt \ init-status \ --suffix=dc=example,dc=com \ example-agreement-server1-to-server2
To start replication from server2 to server1:
$ dsconf \ -D "cn=Directory Manager" \ -w Secret.123 \ ldap://server2.example.com \ repl-agmt \ create \ --suffix=dc=example,dc=com \ --host=server1.example.com \ --port=636 \ --conn-protocol=LDAPS \ --bind-dn="cn=Replication Manager,cn=config" \ --bind-passwd=Secret.123 \ --bind-method=SIMPLE \ --init \ example-agreement-server2-to-server1