From d53e144fa41b8dfac36a58e7845ac09fc2539ead Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 20 Nov 2007 13:02:16 +0000
Subject: [PATCH] Simplify the interface of InstallerHelper.configureReplication and add some checks to avoid problems with DN comparison in the code of the QuickSetup.

---
 opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
index c8ca3c7..83a2e5d 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java
@@ -212,8 +212,6 @@
    * Configures the replication on a given server.
    * @param remoteCtx the conection to the server where we want to configure
    * the replication.
-   * @param dns the suffix base dns for which we want to configure the
-   * replication.
    * @param replicationServers a Map where the key value is the base dn and
    * the value is the list of replication servers for that base dn (or domain).
    * @param replicationPort the replicationPort of the server that is being
@@ -229,8 +227,7 @@
    * @return a ConfiguredReplication object describing what has been configured.
    */
   public ConfiguredReplication configureReplication(
-      InitialLdapContext remoteCtx, Set<String> dns,
-      Map<String,Set<String>> replicationServers,
+      InitialLdapContext remoteCtx, Map<String,Set<String>> replicationServers,
       int replicationPort, boolean useSecureReplication, String serverDisplay,
       Set<Integer> usedReplicationServerIds, Set<Integer> usedServerIds)
   throws ApplicationException
@@ -365,7 +362,7 @@
       {
         domains[i] = sync.getReplicationDomain(domainNames[i]);
       }
-      for (String dn : dns)
+      for (String dn : replicationServers.keySet())
       {
         ReplicationDomainCfgClient domain = null;
         boolean isCreated;

--
Gitblit v1.10.0