From 4ba41d9ca10d151a6c4f80e48c78e322c98d5549 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 04 Aug 2007 22:25:50 +0000
Subject: [PATCH] Update the "Who Am I?" extended operation handler so that it supports the use of the proxied authorization control (versions 1 and 2).  Also, add test cases that cover the use of the proxied auth control and an alternate authorization identity from a SASL bind.

---
 opends/src/server/org/opends/server/messages/ExtensionsMessages.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/ExtensionsMessages.java b/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
index c8cdadb..c4dfdf3 100644
--- a/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
+++ b/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
@@ -2948,10 +2948,10 @@
 
   /**
    * The message ID for the message that will be used if a "Who Am I?" request
-   * is received but no client connection structure is available.  This does not
-   * take any arguments.
+   * includes the proxied authorization control and the client doesn't have
+   * permission to use it.  This does not take any arguments.
    */
-  public static final int MSGID_EXTOP_WHOAMI_NO_CLIENT_CONNECTION =
+  public static final int MSGID_EXTOP_WHOAMI_PROXYAUTH_INSUFFICIENT_PRIVILEGES =
        CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_SEVERE_ERROR | 277;
 
 
@@ -7155,9 +7155,9 @@
                     "GSSAPI authentication");
 
 
-    registerMessage(MSGID_EXTOP_WHOAMI_NO_CLIENT_CONNECTION,
-                    "No client connection structure is available for use in " +
-                    "determining the requested authorization ID");
+    registerMessage(MSGID_EXTOP_WHOAMI_PROXYAUTH_INSUFFICIENT_PRIVILEGES,
+                    "You do not have sufficient privileges to use the " +
+                    "proxied authorization control");
 
 
     registerMessage(MSGID_SOFTREFCACHE_DESCRIPTION_LOCK_TIMEOUT,

--
Gitblit v1.10.0