From 59b4905a66a5db370e6d0de5f7cb6dcd314ef443 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Sun, 26 Aug 2007 03:16:07 +0000
Subject: [PATCH] This commit includes all the code for the first version of the replication tools.  As they require further testing the command line associated with them has not been committed.

---
 opends/src/messages/messages/admin_tool.properties |  149 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 140 insertions(+), 9 deletions(-)

diff --git a/opends/src/messages/messages/admin_tool.properties b/opends/src/messages/messages/admin_tool.properties
index ec4b5af..04c0762 100644
--- a/opends/src/messages/messages/admin_tool.properties
+++ b/opends/src/messages/messages/admin_tool.properties
@@ -103,8 +103,6 @@
 OpenDS servers the server must be started and then you must provide \
 administrator authentication.  Do you want to start the server and then \
 provide authentication to remove the remote references?
-INFO_UNINSTALL_CLI_ADMINISTRATOR_UID_PROMPT=Global Administrator User ID
-INFO_UNINSTALL_CLI_ADMINISTRATOR_PWD_PROMPT=Global Administrator Password:
 INFO_UNINSTALL_CLI_REFERENCED_HOSTNAME_PROMPT=The name of this host (or IP \
 address) as it is referenced in remote servers for replication
 INFO_UNINSTALL_CONFIRM_PROVIDE_AUTHENTICATION_AGAIN=Do you want to provide \
@@ -159,8 +157,8 @@
  continue. Do you want the uninstaller to stop the server for you and continue \
  with the uninstall? If you click No, you will need to stop the server \
  manually to continue.
-MILD_ERR_READING_REGISTERED_SERVERS_CONFIRM_UPDATE_REMOTE=The following \
- errors were encountered reading the configuration of the existing \
+MILD_ERR_UNINSTALL_READING_REGISTERED_SERVERS_CONFIRM_UPDATE_REMOTE=The \
+ following errors were encountered reading the configuration of the existing \
  servers:\n%s\nDo you want the uninstaller to try to remove the references to \
  this server in a best-effort mode?
 INFO_CONFIRM_UNINSTALL_SERVER_RUNNING_TITLE=Server is Running
@@ -347,7 +345,7 @@
  install.  If not specified the graphical interface will be launched.  The \
  rest of the options (excluding help and version) will only be taken into \
  account if this option is specified
-INFO_UNINSTALLDS_DESCRIPTION_SILENT=Perform a quiet uninstall (no \
+INFO_UNINSTALLDS_DESCRIPTION_QUIET=Perform a quiet uninstall (no \
  progress information is written to the standard output)
 INFO_UNINSTALLDS_DESCRIPTION_REMOVE_ALL=Remove all components of \
  OpenDS (this option is not compatible with the rest of remove options)
@@ -441,15 +439,21 @@
  StartTLS to secure communication with the source server
 INFO_REPLICATION_TOOL_DESCRIPTION=This utility may be used to configure \
  replication between servers so that the data of the servers is synchronized.\
- In order replication to work you have first to enable replication between two \
- servers using the {%s} subcommand and then initialize the contents of one of \
+ In order replication to work you have first to enable replication using the \
+ {%s} subcommand and then initialize the contents of one of \
  servers with the contents of the other using the {%s} subcommand.
+INFO_REPLICATION_DESCRIPTION_QUIET=Perform a quiet operation (no \
+ progress information is written to the standard output)
 INFO_DESCRIPTION_SUBCMD_INITIALIZE_REPLICATION=Initialize the contents of the \
  data under the specified Bind DN on the destination server with the contents \
  on the source server.  This operation is required after enabling replication \
  in order replication to work.
-INFO_DESCRIPTION_SUBCMD_ENABLE_REPLICATION=Configures the two specified \
- servers to replicate the data under the specified Bind DN.
+INFO_DESCRIPTION_SUBCMD_ENABLE_REPLICATION=Updates the configuration of the \
+ servers to replicate the data under the specified Base DN.  If one of the \
+ specified servers is already replicating the data under the Base DN with \
+ other servers, executing this subcommand will update the configuration of all \
+ the servers (so it is sufficient to execute the command line once for each \
+ server we add to the replication topology).
 INFO_DESCRIPTION_SUBCMD_DISABLE_REPLICATION=Disables replication on the \
  specified server for the provided Base DN and removes references in the other \
  servers with which it is replicating data.
@@ -460,3 +464,130 @@
  provide it using the {%s} or the {%s} options.
 SEVERE_ERR_REPLICATION_NOT_A_VALID_BASEDN=The provided value %s is not a valid \
  base DN.
+SEVERE_ERR_REPLICATION_SAME_SERVER_PORT=You have to provide two different \
+ servers to replicate.  You have provided twice the server %s:%s
+SEVERE_ERR_REPLICATION_SAME_REPLICATION_PORT=You have provided the same \
+ replication port (%s) for two servers located on the same machine (%s).
+SEVERE_ERR_REPLICATION_VALID_SUBCOMMAND_NOT_FOUND=Could not find a valid \
+ subcommand.
+INFO_REPLICATION_SUCCESSFUL=The operation has been successfully completed
+INFO_REPLICATION_SUCCESSFUL_NOP=The operation has been successfully completed, \
+ but no action was required
+MILD_ERR_REPLICATION_USER_CANCELLED=User cancelled the operation
+SEVERE_ERR_REPLICATION_NO_MESSAGE=
+
+INFO_ADMINISTRATOR_UID_PROMPT=Global Administrator User ID:
+INFO_ADMINISTRATOR_PWD_PROMPT=Global Administrator Password:
+INFO_ADMINISTRATOR_PWD_CONFIRM_PROMPT=Confirm Password:
+MILD_ERR_ADMINISTRATOR_PWD_DO_NOT_MATCH=The provided passwords do not match.
+MILD_ERR_ERROR_CONNECTING_TO_SERVER_PROMPT_AGAIN=Could not connect to the \
+ Directory Server %s with the provided credentials.%nProvide again the \
+ required information to connect to the server:
+INFO_REPLICATION_ENABLE_HOSTNAME1_PROMPT=Host name of the first server:
+INFO_REPLICATION_ENABLE_PORT1_PROMPT=LDAP port of the first server:
+INFO_REPLICATION_ENABLE_REPLICATIONPORT1_PROMPT=Replication port for the first \
+server (the port must be free):
+INFO_REPLICATION_ENABLE_HOSTNAME2_PROMPT=Host name of the second server:
+INFO_REPLICATION_ENABLE_PORT2_PROMPT=LDAP port of the second server:
+INFO_REPLICATION_ENABLE_REPLICATIONPORT2_PROMPT=Replication port for the \
+second server (the port must be free):
+INFO_REPLICATION_INITIALIZE_HOSTNAMESOURCE_PROMPT=Host name of the source \
+server:
+INFO_REPLICATION_INITIALIZE_PORTSOURCE_PROMPT=LDAP port of the source server:
+INFO_REPLICATION_DISABLE_HOSTNAME_PROMPT=Host name of the server:
+INFO_REPLICATION_DISABLE_PORT_PROMPT=LDAP port of the server:
+INFO_REPLICATION_INITIALIZE_HOSTNAMEDESTINATION_PROMPT=Host name of the \
+destination server:
+INFO_REPLICATION_INITIALIZE_PORTDESTINATION_PROMPT=LDAP port of the \
+destination server:
+INFO_REPLICATION_BINDDN_PROMPT=Bind DN
+INFO_REPLICATION_PASSWORD_PROMPT=Password
+INFO_REPLICATION_USESSL_PROMPT=Use SSL to connect
+INFO_CLI_INVALID_PORT=The provided value is not a valid port
+INFO_REPLICATION_USESTARTTLS_PROMPT=Use StartTLS to connect
+SEVERE_ERR_REPLICATION_PORT_AND_REPLICATION_PORT_EQUAL=The server LDAP port \
+ and the replication port cannot have the same value.  You provided %s for both.
+SEVERE_ERR_NO_SUFFIXES_AVAILABLE_TO_ENABLE_REPLICATION=There are no base DNs \
+ available to enable replication between the two servers.
+INFO_ALREADY_REPLICATED_SUFFIXES=The following base DNs are already replicated \
+ between the two servers:%n%s
+INFO_ALREADY_NOT_REPLICATED_SUFFIXES=The following base DNs are not replicated \
+ between the two servers:%n%s
+MILD_ERR_REPLICATION_ENABLE_SUFFIXES_NOT_FOUND=The following base DNs cannot \
+ be replicated between the two servers because they could not be found in at \
+ least one of the servers:%n%s
+MILD_ERR_NO_SUFFIXES_SELECTED_TO_REPLICATE=You must choose at least one base \
+ DN to be replicated.
+INFO_REPLICATION_ENABLE_SUFFIX_PROMPT=Replicate base DN %s?
+SEVERE_ERR_NO_SUFFIXES_AVAILABLE_TO_INITIALIZE_REPLICATION=There are no base \
+ DNs replicated between the two servers.
+MILD_ERR_SUFFIXES_CANNOT_BE_INITIALIZED=The following base DNs cannot be \
+ initialized because they are not replicated or they are not configured on \
+ both servers:%n%s
+MILD_ERR_NO_SUFFIXES_SELECTED_TO_INITIALIZE=You must choose at least one \
+ base DN to be initialized.
+INFO_REPLICATION_INITIALIZE_SUFFIX_PROMPT=Initialize base DN %s?
+SEVERE_ERR_NO_SUFFIXES_AVAILABLE_TO_DISABLE_REPLICATION=There are no base \
+ DNs replicated in the server.
+MILD_ERR_REPLICATION_DISABLE_SUFFIXES_NOT_FOUND=The following base DNs 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.
+INFO_REPLICATION_DISABLE_SUFFIX_PROMPT=Disable replication on base DN %s?
+MILD_ERR_REPLICATION_READING_REGISTERED_SERVERS_CONFIRM_UPDATE_REMOTE=The \
+ following errors were encountered reading the configuration of the existing \
+ servers:\n%s\nIf you continue the 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.  Do \
+ you want to continue?
+MILD_ERR_NOT_ADMINISTRATIVE_USER=You do not have access rights to the \
+ configuration of the server.
+INFO_REPLICATION_CONFIRM_DISABLE_ADS=You chose to disable replication on \
+ base DN %s.  This base DN is used by the replication mechanism and by some \
+ administrative tools and it is not recommended to configure it directly.  Do \
+ you want to continue?
+INFO_REPLICATION_CONFIRM_DISABLE_GENERIC=Disabling replication will make the \
+ data under the selected base DNs not to be synchronized with other servers \
+ any more.  Do you want to continue?
+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 \
+ not recommended to configure it directly.  Do you want to continue?
+INFO_REPLICATION_CONFIRM_INITIALIZE_GENERIC=Initializing the contents of a \
+ base DN removes all the existing contents of that base DN.  Do you want to \
+ remove the contents of the selected base DNs on server %s and replace them \
+ with the contents of server %s?
+MILD_ERR_REPLICATION_READING_REGISTERED_SERVERS_WARNING=The following errors \
+ were encountered reading the configuration of the existing servers:\n%s\nThe \
+ 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_CONNECTING=Establishing connections
+INFO_REPLICATION_ENABLE_UPDATING_ADS_CONTENTS=Checking Registration information
+INFO_REPLICATION_ENABLE_CONFIGURING_REPLICATION_SERVER=Configuring Replication \
+ port on server %s
+INFO_REPLICATION_ENABLE_CONFIGURING_BASEDN=Enabling Replication for baseDN %s \
+ on server %s
+INFO_ENABLE_REPLICATION_INITIALIZING_ADS=Initializing Registration information \
+ on server %s with the contents of server %s
+SEVERE_ERR_INITIALIZING_REPLICATIONID_NOT_FOUND=Error initializing.  Could not \
+ find replication ID in the server %s for base DN %s.
+SEVERE_ERR_REPLICATION_INITIALIZING_TRIES_COMPLETED=Error initializing.  Could \
+ not find a peer to start the initialization after several tries.  Details: %s
+SEVERE_ERR_REPLICATION_CONFIGURING_REPLICATIONSERVER=Error configuring \
+ replication port on server %s.
+SEVERE_ERR_REPLICATION_CONFIGURING_BASEDN=Error updating replication \
+ configuration on base DN %s of server %s.
+SEVERE_ERR_REPLICATION_UPDATING_ADS=Error updating Registration information.  \
+ Details: %s
+SEVERE_ERR_REPLICATION_READING_ADS=Error reading Registration information.  \
+ Details: %s
+SEVERE_ERR_REPLICATION_ADS_MERGE_NOT_SUPPORTED=The registry information found \
+in servers %s and %s is different.  This tool does not allow to handle this \
+scenario.
+SEVERE_ERR_REPLICATION_ERROR_READING_CONFIGURATION=Error reading replication \
+configuration of server %s.  Details: %s
+INFO_REPLICATION_REMOVING_REFERENCES_ON_REMOTE=Removing references on base DN \
+%s of server %s
+INFO_REPLICATION_DISABLING_BASEDN=Disabling replication on base DN %s of \
+server %s
\ No newline at end of file

--
Gitblit v1.10.0