Create admin user in odj-1
./dsframework create-admin-user -X \
-h odj-1 -p 4444 -D "cn=Directory Manager" -w password \
--userID admin --set password:adminpassword
Create admin user in odj-2
./dsframework create-admin-user -X \
-h odj-2 -p 4444 -D "cn=Directory Manager" -w password \
--userID admin --set password:adminpassword
List admin user
$ ./dsframework list-admin-user -X \
Password for user 'cn=Directory Manager':
id: admin
Enable replication
./dsreplication enable --host1 odj-1 --port1 4444 \
--bindDN1 "cn=directory manager" --bindPassword1 password \
--replicationPort1 8989 --host2 odj-2 --port2 4444 \
--bindDN2 "cn=directory manager" --bindPassword2 password \
--replicationPort2 8989 --adminUID admin --adminPassword password \
--baseDN "dc=example,dc=com" -X -n
Initialise replication
$ ./dsreplication initialize \
--baseDN "dc=example,dc=com" \
--adminUID admin --adminPassword password \
--hostSource odj-1 --portSource 4444 \
--hostDestination odj-2 --portDestination 4444 -X -n
Administer replication
$ ./dsreplication -X