Fix for issue 4092 (dsreplication should allow to configure servers with no replication server and servers with only a replication server)
The new arguments for the enable subcommand are:
--noReplicationServer1
Specifies not to have a replication port and changelog on the first server.
The first server will only contain replicated data but no changelog with
the modifications made to the replicated data. At least two servers with a
changelog are required in the replication topology to avoid a single point
of failure
--onlyReplicationServer1
Specifies to only have a changelog (with a replication port) on the first
server. The first server will not contain replicated data but only a
changelog with the modifications made in the data contained in other
servers
--noReplicationServer2
Specifies not to have a replication port and changelog on the second
server. The second server will only contain replicated data but no
changelog with the modifications made to the replicated data. At least two
servers with a changelog are required in the replication topology to avoid
a single point of failure
--onlyReplicationServer2
Specifies to only have a changelog (with a replication port) on the second
server. The second server will not contain replicated data but only a
changelog with the modifications made in the data contained in other
servers
The two new arguments for the disable subcommand are:
--disableReplicationServerArg
Disable the replication server. The replication port and changelog will be
disabled on the specified server
--disableAll
Disable all the replication configuration in the specified server. The
contents of the server will no longer be replicated and the replication
server (changelog and replication port) will be disabled if it is
configured
There is a new configuration argument:
--advanced
Use this option to have access to advanced settings when running this
command-line in interactive mode
Note that the --disableAll is not required but it can be considered a handy option to remove all replication information in a given server (including the contents in cn=admin data). It can be useful when the user wants to start over a replication configuration as it guarantees a clean starting point.
The current behavior (when no new arguments are specified) has been kept intact. This means that the user will not have to choose to configure the replication server or the domains unless the advanced option is specified.
The exception to this happens in the case where the user decides to disable all the suffixes (but the new --disableAll option is not specified). In this case the replication server will not be automatically disabled. However if the command is run in non-interactive mode, the user will be informed of this and if run in interactive mode, the user will be proposed to disable it.
The status subcommand has also been modified to display the cases where there are replication servers that are no domains and vice-versa.