From bbdcd1d918a2f27fccb2e6a3fe4d854b901dffd8 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 06 Jul 2009 13:52:09 +0000
Subject: [PATCH] Fix for issue 4092 (dsreplication should allow to configure servers with no replication server and servers with only a replication server)

---
 opends/src/messages/messages/admin_tool.properties |  133 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 126 insertions(+), 7 deletions(-)

diff --git a/opends/src/messages/messages/admin_tool.properties b/opends/src/messages/messages/admin_tool.properties
index 91dadeb..a16959a 100644
--- a/opends/src/messages/messages/admin_tool.properties
+++ b/opends/src/messages/messages/admin_tool.properties
@@ -413,10 +413,20 @@
  communication through the replication port of the first server is encrypted \
  or not.  This option will only be taken into account the first time \
  replication is configured on the first server.
+INFO_DESCRIPTION_ENABLE_REPLICATION_NO_REPLICATION_SERVER1=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
+INFO_DESCRIPTION_ENABLE_REPLICATION_ONLY_REPLICATION_SERVER1=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
 INFO_DESCRIPTION_ENABLE_REPLICATION_HOST2=Fully qualified directory server \
  host name or IP address of the second server whose contents will be replicated
-INFO_DESCRIPTION_ENABLE_REPLICATION_SERVER_PORT2=Directory server administration port \
- number of the second server whose contents will be replicated
+INFO_DESCRIPTION_ENABLE_REPLICATION_SERVER_PORT2=Directory server \
+ administration port number of the second server whose contents will be \
+ replicated
 INFO_DESCRIPTION_ENABLE_REPLICATION_BINDDN2=DN to use to \
  bind to the second server whose contents will be replicated.  If not \
  specified the global administrator will be used to bind
@@ -444,6 +454,16 @@
  communication through the replication port of the second server is encrypted \
  or not.  This option will only be taken into account the first time \
  replication is configured on the second server
+INFO_DESCRIPTION_ENABLE_REPLICATION_NO_REPLICATION_SERVER2=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
+INFO_DESCRIPTION_ENABLE_REPLICATION_ONLY_REPLICATION_SERVER2=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
 INFO_DESCRIPTION_ENABLE_REPLICATION_STARTTLS2=Use StartTLS to secure \
  communication with the second server
 INFO_DESCRIPTION_REPLICATION_BASEDNS=Base DN of \
@@ -485,6 +505,12 @@
  user does not want to remove references in the other replicated servers.  The \
  password provided for the Global Administrator will be used when specifying \
  this option
+INFO_DESCRIPTION_DISABLE_REPLICATION_SERVER=Disable the replication server.  \
+ The replication port and changelog will be disabled on the specified server
+INFO_DESCRIPTION_DISABLE_ALL=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
 INFO_DESCRIPTION_SUBCMD_INITIALIZE_REPLICATION=Initialize the contents of the \
  data under the specified Base DN on the destination server with the contents \
  on the source server.  This operation is required after enabling replication \
@@ -567,6 +593,11 @@
 INFO_REPLICATION_ENABLE_PORT1_PROMPT=Administration port of the first server
 INFO_REPLICATION_ENABLE_PROTOCOL1=How do you want to connect to the first \
  server?
+INFO_REPLICATION_ENABLE_REPLICATION_SERVER1_PROMPT=A replication server \
+ contains a changelog with the replication changes and requires a replication \
+ port to be configured.%nDo you want the first server to contain a changelog?
+INFO_REPLICATION_ENABLE_REPLICATION_DOMAIN1_PROMPT=Will this server contain \
+ the data that is going to be replicated?
 INFO_REPLICATION_ENABLE_REPLICATIONPORT1_PROMPT=Replication port for the first \
  server (the port must be free)
 INFO_REPLICATION_ENABLE_SECURE1_PROMPT=Do you want replication to use encrypted \
@@ -579,6 +610,11 @@
 INFO_REPLICATION_ENABLE_PORT2_PROMPT=Administration port of the second server
 INFO_REPLICATION_ENABLE_PROTOCOL2=How do you want to connect to the second \
  server?
+INFO_REPLICATION_ENABLE_REPLICATION_SERVER2_PROMPT=A replication server \
+ contains a changelog with the replication changes and requires a replication \
+ port to be configured.%nDo you want the second server to contain a changelog?
+INFO_REPLICATION_ENABLE_REPLICATION_DOMAIN2_PROMPT=Will this server contain \
+ the data that is going to be replicated?
 INFO_REPLICATION_ENABLE_REPLICATIONPORT2_PROMPT=Replication port for the \
  second server (the port must be free)
 INFO_REPLICATION_ENABLE_SECURE2_PROMPT=Do you want replication to use encrypted \
@@ -591,6 +627,11 @@
  server administration connection parameters for the destination server
 SEVERE_ERR_NO_SUFFIXES_AVAILABLE_TO_ENABLE_REPLICATION=There are no base DN's \
  available to enable replication between the two servers.
+SEVERE_ERR_NO_SUFFIXES_AVAILABLE_TO_ENABLE_REPLICATION_NO_DOMAIN=There are no \
+ base DN's available to enable replication between the two servers.  You must \
+ specify at least one server that will contain the replicated data, before \
+ configuring servers that will only contain the replication changelog \
+ (replication servers).
 INFO_ALREADY_REPLICATED_SUFFIXES=The following base DN's are already replicated \
  between the two servers:%n%s
 INFO_ALREADY_NOT_REPLICATED_SUFFIXES=The following base DN's are not \
@@ -618,7 +659,7 @@
  base DN's replicated in the server.
 MILD_ERR_REPLICATION_DISABLE_SUFFIXES_NOT_FOUND=The following base DN's could \
  not be found on the server:%n%s
- MILD_ERR_REPLICATION_INITIALIZE_LOCAL_SUFFIXES_NOT_FOUND=The following base \
+MILD_ERR_REPLICATION_INITIALIZE_LOCAL_SUFFIXES_NOT_FOUND=The following base \
  DN's could not be found on the server:%n%s
 MILD_ERR_NO_SUFFIXES_SELECTED_TO_DISABLE=You must choose at least one \
  base DN to be disabled.
@@ -634,6 +675,38 @@
  the base DN's that have been initialized using the import-ldif command or the \
  binary copy.
 INFO_REPLICATION_DISABLE_SUFFIX_PROMPT=Disable replication on base DN %s?
+INFO_REPLICATION_DISABLE_ALL_SUFFIXES_KEEP_REPLICATION_SERVER=You have chosen \
+ to disable replication on all the replicated servers of '%s'.  If you want \
+ also the replication server (changelog and replication port) to be disabled \
+ you must also specify the '--%s' or '--%s' argument.
+INFO_REPLICATION_DISABLE_ALL_SUFFIXES_DISABLE_REPLICATION_SERVER=You have \
+ chosen to disable replication on all the replicated servers of '%s'.  Do you \
+ want to disable also the the replication server (with replication port '%d') \
+ configured on the server?
+INFO_REPLICATION_DISABLE_ALL_SUFFIXES_DISABLE_REPLICATION_SERVER=You have \
+ chosen to disable all the base DNs on the server '%s'.  Do you want to \
+ disable also the replication port '%d'?
+INFO_DISABLE_REPLICATION_ONE_POINT_OF_FAILURE=You have decided to disable the \
+ replication server (replication changelog).  After disabling the replication \
+ server only one replication server will be configured for the following \
+ suffixes:%n%s%nTo avoid a single point of failure at least two replication \
+ servers must be configured.
+INFO_DISABLE_REPLICATION_ONE_POINT_OF_FAILURE_PROMPT=You have decided to \
+ disable the replication server (replication changelog).  After disabling the \
+ replication server only one replication server will be configured for the \
+ following suffixes:%n%s%nTo avoid a single point of failure at least two \
+ replication servers must be configured.%nDo you want to continue?
+INFO_DISABLE_REPLICATION_DISABLE_IN_REMOTE=You have decided to disable the \
+ replication server (replication changelog).  At least one replicaton server \
+ is required in a replication topology and this is the last replication server \
+ for the following suffixes:%n%s%nReplication will be disabled for these \
+ servers.
+INFO_DISABLE_REPLICATION_DISABLE_IN_REMOTE_PROMPT=You have decided to disable \
+ the replication server (replication changelog).  At least one replicaton \
+ server is required in a replication topology and this is the last replication \
+ server for the following suffixes:%n%s%nReplication will be disabled for \
+ these servers.%nDo you want to continue?
+INFO_REPLICATION_DISABLE_ADS_CONTENTS=Removing registration information
 INFO_REPLICATION_INITIALIZE_ALL_SUFFIX_PROMPT=Initialize base DN %s?
 INFO_REPLICATION_PRE_EXTERNAL_INITIALIZATION_SUFFIX_PROMPT=Are you going to \
  initialize with import-ldif or binary copy base DN %s?
@@ -660,10 +733,22 @@
 INFO_REPLICATION_CONFIRM_DISABLE_GENERIC=Disabling replication will make the \
  data under the selected base DN's not to be synchronized with other servers \
  any more.  Do you want to continue?
-INFO_REPLICATION_CONFIRM_DISABLE_LAST_SUFFIXES=Disabling replication will make \
- the data under the selected base DN's not to be synchronized with other \
- servers any more.  The replication port on the server will also be disabled.  \
- Do you want to continue?
+INFO_REPLICATION_PROMPT_DISABLE_ALL=You can choose to disable all the \
+ replication on the server.  If you choose 'yes' the changelog and the \
+ replication port (if defined) will be disabled; if this server contains \
+ replicated data, the data will not be replicated with other servers any \
+ more; all the registration information will be deleted.%nDo you want to \
+ disable all the replication configuration?
+INFO_REPLICATION_PROMPT_NO_REPLICATION_SERVER_TO_DISABLE=There is no \
+ replication server configured in '%s'.  Do you want to continue?
+INFO_REPLICATION_WARNING_NO_REPLICATION_SERVER_TO_DISABLE=There is no \
+ replication server configured in '%s'.
+INFO_REPLICATION_CONFIRM_DISABLE_ALL=Disabling all replication will make \
+ the data under the base DN's not to be synchronized with other \
+ servers any more.  The replication server (changelog and replicatin port) on \
+ the server will also be disabled.  Do you want to disable all replication?
+INFO_REPLICATION_PROMPT_DISABLE_REPLICATION_SERVER=Do you want to disable the \
+ replication server (changelog and replicatin port '%d') on the server?
 INFO_REPLICATION_CONFIRM_INITIALIZE_ADS=You chose to initialize the contents \
  of base DN %s on server %s with the contents in server %s.  This base DN is \
  used by the replication mechanism and by some administrative tools and it is \
@@ -685,6 +770,12 @@
  replication tool will to try to update the configuration of all the servers \
  in a best-effort mode.  However it cannot guarantee that the servers that are \
  generating errors will be updated.
+INFO_REPLICATION_SERVER_CONFIGURED_WARNING=You asked not to configure a \
+ replication server in '%s' but the server already has a replication server \
+ configured (with replication port '%d').
+INFO_REPLICATION_SERVER_CONFIGURED_WARNING_PROMPT=You asked not to configure a \
+ replication server in '%s' but the server already has a replication server \
+ configured (with replication port '%d').  Do you want to continue?
 INFO_REPLICATION_CONNECTING=Establishing connections
 INFO_REPLICATION_ENABLE_UPDATING_ADS_CONTENTS=Checking Registration information
 INFO_REPLICATION_ENABLE_UPDATING_REPLICATION_SERVER=Updating remote references \
@@ -751,6 +842,32 @@
 missing change:
 INFO_REPLICATION_STATUS_LABEL_REPLICATION_PORT=Replication Port:
 INFO_REPLICATION_STATUS_LABEL_SECURE=Security:
+INFO_REPLICATION_STATUS_NOT_A_REPLICATION_SERVER_LEGEND=[5] Server not \
+ configured as a replication server (no replication changelog).
+INFO_REPLICATION_STATUS_NOT_A_REPLICATION_DOMAIN_LEGEND=[6] Server does not \
+ contain replicated data for the suffix.
+INFO_REPLICATION_STATUS_NOT_A_REPLICATION_SERVER_SHORT=-- [5]
+INFO_REPLICATION_STATUS_NOT_A_REPLICATION_DOMAIN_SHORT=-- [6]
+INFO_REPLICATION_STATUS_NOT_A_REPLICATION_SERVER_LONG=Server not configured as \
+ a replication server (no changelog)
+INFO_REPLICATION_STATUS_NOT_A_REPLICATION_DOMAIN_LONG=Server does not contain \
+ replicated data for the suffix
+INFO_REPLICATION_STATUS_INDEPENDENT_REPLICATION_SERVERS=The following servers \
+ have a replication server (with changelog and a replication port) but are not \
+ linked to any server containing replicated data.
+INFO_REPLICATION_ONLY_ONE_REPLICATION_SERVER_CONFIRM=Only one replication \
+ server will be defined for the following base DNs:%n%s%nIt is recommended to \
+ have at least two replication servers (two changelogs) to avoid a single \
+ point of failure in the replication topology.%nDo you want to continue?
+INFO_REPLICATION_ONLY_ONE_REPLICATION_SERVER_WARNING=Only one replication \
+ server will be defined for the following base DNs:%n%s%nIt is recommended to \
+ have at least two replication servers (two changelogs) to avoid a single \
+ point of failure in the replication topology.
+SEVERE_ERR_REPLICATION_NO_REPLICATION_SERVER=No replication server is defined \
+ for the following base DNs:%n%s%nAt least one replication server (a \
+ changelog) is required in the replication topology.  It is recommended to \
+ have at least two replication servers (two changelogs) to avoid a single \
+ point of failure in the replication topology.
 INFO_REPLICATION_STATUS_SECURITY_ENABLED=Enabled
 INFO_REPLICATION_STATUS_SECURITY_DISABLED=Disabled
 INFO_REPLICATION_CRITICAL_ERROR_DETAILS=Details: %s
@@ -812,6 +929,8 @@
 INFO_REPLICATION_DESCRIPTION_EQUIVALENT_COMMAND_FILE_PATH=The full path to \
  the file where the equivalent non-interactive commands will be written when \
  this command is run in interactive mode
+INFO_REPLICATION_DESCRIPTION_ADVANCED=Use this option to have access to \
+ advanced settings when running this command-line in interactive mode
 MILD_ERR_REPLICATION_ERROR_WRITING_EQUIVALENT_COMMAND_LINE=An error \
  occurred while attempting to write equivalent non-interactive command line to \
  file %s.  Error details:  %s

--
Gitblit v1.10.0