Sample setup commands for the two-host configuration
For the two-host configuration, only two commands are needed to enable replication and synchronize data. Both servers must be running before entering these commands. If you have an existing server with data, that server must be identified as the hostSource and portSource in the initialize command. The following assumes that the two servers will be on different hosts, and:
• the default LDAP port, 389, is being used for both servers,
• the default administrative port, 4444, is being used for both servers, and
• the default replication port, 8989, is being used for both servers, so the replication ports are not specified in the example.
You will need to modify the baseDN value (o=ptc in this example), hosts, passwords, and, possibly ports to make the following appropriate for your configuration:
dsreplication enable --host1 <server-1> --port1 4444 --bindDN1
cn=manager --bindPassword1 admin --host2 <server-2> --port2 4444
--bindDN2 cn=manager --bindPassword2 admin --adminUID admin
--adminPassword admin --noSchemaReplication --baseDN o=ptc
--trustAll --no-prompt
dsreplication initialize-all --hostname
<server-1> --port 4444 --adminUID admin --adminPassword admin
--baseDN o=ptc --trustAll --no-prompt