From 5be072c20e46f0921bb00401ff26d0defb3e8991 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 05 Dec 2006 21:41:50 +0000
Subject: [PATCH] Update the base DN registration process to address a number of issues:

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

diff --git a/opends/src/server/org/opends/server/messages/BackendMessages.java b/opends/src/server/org/opends/server/messages/BackendMessages.java
index d1ecddb..3691cce 100644
--- a/opends/src/server/org/opends/server/messages/BackendMessages.java
+++ b/opends/src/server/org/opends/server/messages/BackendMessages.java
@@ -2233,6 +2233,17 @@
 
 
   /**
+   * The message ID for the message that will be used if an error occurs while
+   * attempting to register a base DN for use in the server.  This takes two
+   * arguments, which are the base DN and a string representation of the
+   * exception that was caught.
+   */
+  public static final int MSGID_BACKEND_CANNOT_REGISTER_BASEDN =
+       CATEGORY_MASK_BACKEND | SEVERITY_MASK_FATAL_ERROR | 210;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -2252,6 +2263,9 @@
                     "the entry is already locked by a long-running operation " +
                     "or that the entry has previously been locked but was " +
                     "not properly unlocked.");
+    registerMessage(MSGID_BACKEND_CANNOT_REGISTER_BASEDN,
+                    "An error occurred while attempting to register base DN " +
+                    "in the Directory Server:  %s.");
 
 
     registerMessage(MSGID_ROOTDSE_CONFIG_ENTRY_NULL,

--
Gitblit v1.10.0