From 44c5b162243b7b05392522f762b53bafe52af07c Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Wed, 19 Sep 2007 21:17:12 +0000
Subject: [PATCH] Fix for issue 2297: dsreplication enable No reachable peer in the domain. Move up the code that seeds the trust store so it happens before replication is enabled (as per gui setup equivalent code).
---
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java b/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
index 191740b..5ff5261 100644
--- a/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
+++ b/opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java
@@ -3025,6 +3025,18 @@
ERR_REPLICATION_UPDATING_ADS.get(adce.getMessage()),
ERROR_UPDATING_ADS, adce);
}
+ try
+ {
+ ServerDescriptor.seedAdsTrustStore(ctxDestination,
+ adsCtxSource.getTrustedCertificates());
+ }
+ catch (Throwable t)
+ {
+ LOG.log(Level.SEVERE, "Error seeding truststores: "+t, t);
+ throw new ReplicationCliException(
+ ERR_REPLICATION_ENABLE_SEEDING_TRUSTSTORE.get(t.toString()),
+ ERROR_SEEDING_TRUSTORE, t);
+ }
printProgressMessage(formatter.getFormattedDone());
printProgressMessage(formatter.getLineBreak());
@@ -3245,18 +3257,6 @@
ConnectionUtils.getHostPort(ctxDestination),
ConnectionUtils.getHostPort(ctxSource))));
- try
- {
- ServerDescriptor.seedAdsTrustStore(ctxDestination,
- adsCtxSource.getTrustedCertificates());
- }
- catch (Throwable t)
- {
- LOG.log(Level.SEVERE, "Error seeding truststores: "+t, t);
- throw new ReplicationCliException(
- ERR_REPLICATION_ENABLE_SEEDING_TRUSTSTORE.get(t.toString()),
- ERROR_SEEDING_TRUSTORE, t);
- }
initializeSuffix(ADSContext.getAdministrationSuffixDN(), ctxSource,
ctxDestination, false);
printProgressMessage(formatter.getFormattedDone());
--
Gitblit v1.10.0