From 30273925a9cd0da65e289ef79c9116a40a3c9abf Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 25 Apr 2007 04:19:06 +0000
Subject: [PATCH] Update the config file handler so that it will reject any modification which attempts to change the structural object class for an entry.

---
 opends/src/server/org/opends/server/messages/ConfigMessages.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/ConfigMessages.java b/opends/src/server/org/opends/server/messages/ConfigMessages.java
index a497236..428cd2d 100644
--- a/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -6573,6 +6573,17 @@
 
 
   /**
+   * The message ID for the message that will be used if a an attempt is made to
+   * modify an entry in the config backend in a manner that will change its
+   * structural object class.
+   */
+  public static final int
+       MSGID_CONFIG_FILE_MODIFY_STRUCTURAL_CHANGE_NOT_ALLOWED =
+            CATEGORY_MASK_CONFIG | SEVERITY_MASK_MILD_ERROR | 653;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -6845,6 +6856,9 @@
     registerMessage(MSGID_CONFIG_FILE_MODIFY_NO_SUCH_ENTRY,
                     "Entry %s cannot be modified because the specified entry " +
                     "does not exist");
+    registerMessage(MSGID_CONFIG_FILE_MODIFY_STRUCTURAL_CHANGE_NOT_ALLOWED,
+                    "Configuration entry %s cannot be modified because the " +
+                    "change would alter its structural object class");
     registerMessage(MSGID_CONFIG_FILE_MODIFY_REJECTED_BY_CHANGE_LISTENER,
                     "Entry %s cannot be modified because one of the " +
                     "configuration change listeners registered for that " +

--
Gitblit v1.10.0