From c36a6780c20f526df1bc6e1a3a3b71dfa8b9ec3d Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 28 Feb 2007 14:06:57 +0000
Subject: [PATCH] This set of changes allow to have the schema synchronization working by configuring synchronization for suffix cn=schema (issue 613) .

---
 opends/src/server/org/opends/server/core/SchemaConfigManager.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/SchemaConfigManager.java b/opends/src/server/org/opends/server/core/SchemaConfigManager.java
index 7aaca38..7dc5091 100644
--- a/opends/src/server/org/opends/server/core/SchemaConfigManager.java
+++ b/opends/src/server/org/opends/server/core/SchemaConfigManager.java
@@ -1053,6 +1053,19 @@
 
     List<Attribute> mruList = entry.getAttribute(mruAttrType);
 
+    AttributeType synchronizationStateType =
+      schema.getAttributeType(ATTR_SYNCHRONIZATION_STATE_LC);
+    if (synchronizationStateType == null)
+    {
+      synchronizationStateType =
+        DirectoryServer.getDefaultAttributeType(ATTR_SYNCHRONIZATION_STATE_LC,
+            new MatchingRuleUseSyntax());
+    }
+
+    List<Attribute> synchronizationState =
+      entry.getAttribute(synchronizationStateType);
+    if (synchronizationState != null && !(synchronizationState.isEmpty()))
+      schema.setSynchronizationState(synchronizationState.get(0).getValues());
 
     // Parse the attribute type definitions if there are any.
     if (attrList != null)

--
Gitblit v1.10.0