Install

./setup \
directory-server \
--rootUserDN "cn=Directory Manager" \
--rootUserPassword password \
--monitorUserPassword password \
--hostname opendj1.example.com \
--ldapPort 1389 \
--ldapsPort 1636 \
--httpPort 8080 \
--httpsPort 8443 \
--adminConnectorPort 4444 \
--profile ds-evaluation \
--acceptLicense
./setup \
directory-server \
--rootUserDN "cn=Directory Manager" \
--rootUserPassword password \
--monitorUserPassword password \
--hostname opendj2.example.com \
--ldapPort 2389 \
--ldapsPort 2636 \
--httpPort 9080 \
--httpsPort 9443 \
--adminConnectorPort 5444 \
--profile ds-evaluation \
--acceptLicense
./setup \
directory-server \
--rootUserDN "cn=Directory Manager" \
--rootUserPassword password \
--monitorUserPassword password \
--hostname opendj3.example.com \
--ldapPort 3389 \
--ldapsPort 3636 \
--httpPort 7080 \
--httpsPort 7443 \
--adminConnectorPort 6444 \
--profile ds-evaluation \
--acceptLicense

Configure replication

./dsreplication \
configure \
--adminUID admin \
--adminPassword password \
--baseDN dc=example,dc=com \
--host1 opendj1.example.com \
--port1 4444 \
--bindDN1 "cn=Directory Manager" \
--bindPassword1 password \
--replicationPort1 8989 \
--secureReplication1 \
--host2 opendj2.example.com \
--port2 5444 \
--bindDN2 "cn=Directory Manager" \
--bindPassword2 password \
--replicationPort2 9989 \
--secureReplication2 \
--trustAll \
--no-prompt
./dsreplication \
configure \
--adminUID admin \
--adminPassword password \
--baseDN dc=example,dc=com \
--host1 opendj2.example.com \
--port1 5444 \
--bindDN1 "cn=Directory Manager" \
--bindPassword1 password \
--replicationPort1 9989 \
--secureReplication1 \
--host2 opendj3.example.com \
--port2 6444 \
--bindDN2 "cn=Directory Manager" \
--bindPassword2 password \
--replicationPort2 7989 \
--secureReplication2 \
--trustAll \
--no-prompt
./dsreplication \
initialize-all \
--adminUID admin \
--adminPassword password \
--baseDN dc=example,dc=com \
--hostname opendj1.example.com \
--port 4444 \
--trustAll \
--no-prompt


Check

./dsreplication status -h opendj1.example.com -p 4444 -I admin -w password -X
./dsreplication status -h opendj2.example.com -p 5444 -I admin -w password -X
./dsconfig list-replication-domains \
--provider-name Multimaster\ Synchronization \
--hostname opendj1.example.com \
--port 4444 \
--bindDn cn=Directory\ Manager \
--bindPassword password \
--trustAll \
--no-prompt
./dsconfig list-replication-domains \
--provider-name Multimaster\ Synchronization \
--hostname opendj2.example.com \
--port 5444 \
--bindDn cn=Directory\ Manager \
--bindPassword password \
--trustAll \
--no-prompt


Unconfigure/remove replica

./dsreplication \
unconfigure \
--unconfigureAll \
--port 4444 \
--hostname opendj1.example.com \
--adminUID admin \
--adminPassword password \
--trustAll \
--no-prompt