From b892b0038d7dc619ee4fac7058189736d2d73f0d Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 07 Apr 2011 12:41:00 +0000
Subject: [PATCH] Fix OPENDJ-112 - The Changelog virtual attribute appears in al entries, should only apply to rootDSE. The changes introduce a scope in the VirtualAttributeRule. The default is Whole_Subtree. The changelog virtual attributes are now registered with a BASE_OBJECT scope and "" base DNs, meaning the rootDSE only. Also each virtual attribute provider override the hasValue() method for optimization and avoiding computing the values and throwing them away.

---
 opends/resource/schema/02-config.ldif |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opends/resource/schema/02-config.ldif b/opends/resource/schema/02-config.ldif
index 51680d4..4d84b61 100644
--- a/opends/resource/schema/02-config.ldif
+++ b/opends/resource/schema/02-config.ldif
@@ -22,7 +22,7 @@
 #
 #
 #      Copyright 2006-2010 Sun Microsystems, Inc.
-#      Portions Copyright 2010 ForgeRock AS.
+#      Portions Copyright 2010-2011 ForgeRock AS.
 #
 #
 # This file contains the attribute type and objectclass definitions for use
@@ -3461,6 +3461,7 @@
          ds-cfg-enabled $
          ds-cfg-attribute-type )
   MAY ( ds-cfg-base-dn $
+        ds-cfg-scope $
         ds-cfg-group-dn $
         ds-cfg-filter $
         ds-cfg-conflict-behavior )

--
Gitblit v1.10.0