From 2d0aba220afc66dcb50fcd2639df306a25f639ea Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Wed, 02 May 2007 02:02:04 +0000
Subject: [PATCH] Add ACI support for Get Effective Rights control. Issue #87.

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

diff --git a/opends/src/server/org/opends/server/messages/ToolMessages.java b/opends/src/server/org/opends/server/messages/ToolMessages.java
index 9bfe596..e43ace7 100644
--- a/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -7067,6 +7067,31 @@
   public static final int MSGID_LDIFIMPORT_CANNOT_READ_FILE =
        CATEGORY_MASK_TOOLS | SEVERITY_MASK_SEVERE_ERROR | 887;
 
+/**
+  * The message ID for the message that will be used as the description of the
+  * geteffectiverights control authzid argument.  This does not take any
+  * arguments.
+  */
+ public static final int MSGID_DESCRIPTION_EFFECTIVERIGHTS_USER =
+      CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 888;
+
+
+ /**
+  * The message ID for the message that will be used as the description of the
+  * geteffectiverights control specific attribute list argument.  This does
+  * not take any arguments.
+  */
+ public static final int MSGID_DESCRIPTION_EFFECTIVERIGHTS_ATTR =
+      CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 889;
+
+
+ /**
+  * The message ID for the message that will be used as the description of the
+  * geteffectiverights authzid when it does not start with the required string
+  * "dn:". This takes a single argument, which is the authzid string.
+  */
+ public static final int MSGID_EFFECTIVERIGHTS_INVALID_AUTHZID =
+      CATEGORY_MASK_TOOLS | SEVERITY_MASK_MILD_ERROR | 890;
 
 
   /**
@@ -9294,6 +9319,19 @@
 
     registerMessage(MSGID_LDIFIMPORT_CANNOT_READ_FILE,
                     "The specified LDIF file %s cannot be read");
+
+   registerMessage(MSGID_DESCRIPTION_EFFECTIVERIGHTS_USER,
+                    "Use geteffectiverights control with the provided " +
+                    "authzid");
+
+    registerMessage(MSGID_DESCRIPTION_EFFECTIVERIGHTS_ATTR,
+                    "Specifies geteffectiverights control specific " +
+                    "attribute list");
+
+   registerMessage(MSGID_EFFECTIVERIGHTS_INVALID_AUTHZID,
+                    "The authorization ID \"%s\" contained in the " +
+                     "geteffectiverights control is invalid because it does" +
+                     " not start with \"dn:\" to indicate a user DN");
   }
 }
 

--
Gitblit v1.10.0