From 9b23e8325caf1c548dbf07fccb0a31d29e5d1cca Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 12 Sep 2007 23:21:22 +0000
Subject: [PATCH] Fix for issues: 1335: define, document, review CLI to register a server in a synch 1336: CLI implementation to register a server in a synchronization 1878: provide a CLI to initialize a replication topology from a gi 2201: ads-trustore missing when not configuring replication with t 2250: Setup and dsreplication utilities should configure schema sy
---
opends/src/ads/org/opends/admin/ads/ServerDescriptor.java | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java b/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
index ca818f4..d9aadca 100644
--- a/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
+++ b/opends/src/ads/org/opends/admin/ads/ServerDescriptor.java
@@ -651,7 +651,7 @@
String id = getFirstValue(sr, "ds-cfg-backend-id");
- if (!isConfigBackend(id))
+ if (!isConfigBackend(id) || isSchemaBackend(id))
{
Set<String> baseDns = getValues(sr, "ds-cfg-backend-base-dn");
@@ -1002,6 +1002,17 @@
}
/**
+ * An convenience method to know if the provided ID corresponds to the schema
+ * backend or not.
+ * @param id the backend ID to analyze
+ * @return <CODE>true</CODE> if the the id corresponds to the schema backend
+ * and <CODE>false</CODE> otherwise.
+ */
+ private static boolean isSchemaBackend(String id)
+ {
+ return "schema".equalsIgnoreCase(id);
+ }
+ /**
* Returns <CODE>true</CODE> if the the provided strings represent the same
* DN and <CODE>false</CODE> otherwise.
* @param dn1 the first dn to compare.
--
Gitblit v1.10.0