From 085a86e4efc1f6d91068352dd72a204f6c66a912 Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Wed, 14 Jan 2009 13:28:51 +0000
Subject: [PATCH] 

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

diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index 65ef2f4..ae8d9b1 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -2921,6 +2921,52 @@
 
 
   /**
+   *  Initializes the root DN Config Manager in the Directory Server.
+   *
+   * @throws ConfigException If a problem occurs registering a DN.
+   * @throws InitializationException If a problem occurs initializing the root
+   *                                 DN manager.
+   */
+  public void initializeRootDNConfigManager()
+         throws ConfigException, InitializationException{
+    rootDNConfigManager = new RootDNConfigManager();
+    rootDNConfigManager.initializeRootDNs();
+  }
+
+
+
+  /**
+   * Initialize the root DSE in the Directory Server.
+   *
+   * @throws ConfigException If a problem occurs retrieving the root DSE backend
+   *                         configuration.
+   * @throws InitializationException If a problem occurs initializing the root
+   *                                 root DSE backend.
+   */
+  public void initializeRootDSE()
+         throws ConfigException, InitializationException {
+  RootDSEBackendCfg rootDSECfg;
+  try {
+    RootCfg root =
+         ServerManagementContext.getInstance().getRootConfiguration();
+    rootDSECfg = root.getRootDSEBackend();
+  }  catch (Exception e) {
+    if (debugEnabled())
+    {
+      TRACER.debugCaught(DebugLogLevel.ERROR, e);
+    }
+    Message message = ERR_CANNOT_GET_ROOT_DSE_CONFIG_ENTRY.get(
+        stackTraceToSingleLineString(e));
+    throw new InitializationException(message, e);
+  }
+  rootDSEBackend = new RootDSEBackend();
+  rootDSEBackend.configureBackend(rootDSECfg);
+  rootDSEBackend.initializeBackend();
+}
+
+
+
+  /**
    * Retrieves a reference to the Directory Server plugin configuration manager.
    *
    * @return  A reference to the Directory Server plugin configuration manager.

--
Gitblit v1.10.0