From eacb35f99135e247d083de79a0e4d32dfc5ff42b Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Fri, 01 Jun 2007 21:40:39 +0000
Subject: [PATCH] Fix using operational attributes in userattr bind rule keyword. Issue 1760.
---
opends/src/server/org/opends/server/authorization/dseecompat/ParentInheritance.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/authorization/dseecompat/ParentInheritance.java b/opends/src/server/org/opends/server/authorization/dseecompat/ParentInheritance.java
index cb8dae0..612e677 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/ParentInheritance.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/ParentInheritance.java
@@ -69,6 +69,12 @@
*/
private AttributeType attributeType;
+ /*
+ * The attribute type string parsed from the rule. Only used in
+ * inheritance search.
+ */
+ private String attrTypeStr;
+
/**
* Construct a class from the inheritance pattern. The skipParsing boolean
@@ -150,6 +156,7 @@
DirectoryServer.getAttributeType(toks[1])) == null)
this.attributeType =
DirectoryServer.getDefaultAttributeType(toks[1]);
+ attrTypeStr=toks[1];
StringTokenizer tok=new StringTokenizer(toks[0],"],",false);
while(tok.hasMoreTokens()) {
String v=tok.nextToken();
@@ -206,5 +213,13 @@
public AttributeType getAttributeType() {
return attributeType;
}
+
+ /**
+ * Return the string representation of the attribute type.
+ * @return The attribute type string.
+ */
+ public String getAttrTypeStr() {
+ return attrTypeStr;
+ }
}
--
Gitblit v1.10.0