From 83bd31c260f42941c571acab45b8927c906a0155 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 07 Dec 2006 23:55:41 +0000
Subject: [PATCH] Update the monitor backend so that the cn=monitor entry does not expose internal configuration attributes like the backend ID, base DNs, and writability mode.

---
 opends/src/server/org/opends/server/backends/MonitorBackend.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/backends/MonitorBackend.java b/opends/src/server/org/opends/server/backends/MonitorBackend.java
index fd716a9..15b1089 100644
--- a/opends/src/server/org/opends/server/backends/MonitorBackend.java
+++ b/opends/src/server/org/opends/server/backends/MonitorBackend.java
@@ -313,7 +313,10 @@
     AttributeType attrType = attribute.getAttributeType();
     if (attrType.hasName(ATTR_COMMON_NAME) ||
         attrType.hasName(ATTR_BACKEND_ENABLED.toLowerCase()) ||
-        attrType.hasName(ATTR_BACKEND_CLASS.toLowerCase()))
+        attrType.hasName(ATTR_BACKEND_CLASS.toLowerCase()) ||
+        attrType.hasName(ATTR_BACKEND_BASE_DN.toLowerCase()) ||
+        attrType.hasName(ATTR_BACKEND_ID.toLowerCase()) ||
+        attrType.hasName(ATTR_BACKEND_WRITABILITY_MODE.toLowerCase()))
     {
       return true;
     }

--
Gitblit v1.10.0