From 7081ca28e7902476b3e132ff44c241f9cab9ff7f Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 28 Mar 2011 21:01:36 +0000
Subject: [PATCH] Fix OPENDJ-58: Double value cn: schema in 99-user.ldif. If 00-core.ldif get modified, and the server rewrites the file, it inserts cn: schema before the definition of standard schema including the definition on the cn attribute. So make sure we treat cn as other schema attributes.

---
 opends/src/server/org/opends/server/core/SchemaConfigManager.java |    1 +
 1 files changed, 1 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 866fd8d..22c4ab2 100644
--- a/opends/src/server/org/opends/server/core/SchemaConfigManager.java
+++ b/opends/src/server/org/opends/server/core/SchemaConfigManager.java
@@ -1535,6 +1535,7 @@
         attributeOid.equals("2.5.21.8") ||
         attributeOid.equals("2.5.4.3")  ||
         attributeOid.equals("1.3.6.1.4.1.1466.101.120.16") ||
+        attributeOid.equals("cn-oid") ||
         attributeOid.equals("attributetypes-oid")      ||
         attributeOid.equals("objectclasses-oid")       ||
         attributeOid.equals("matchingrules-oid")       ||

--
Gitblit v1.10.0