From 3576aae09ea6a0d594c71d27b0edd3f7e2abd157 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 10 Jul 2007 22:52:19 +0000
Subject: [PATCH] Update the server's DIGEST-MD5 SASL mechanism handler so that it provides support for parsing the digest-uri element of the request.  By default, no parsing is performed and any digest-uri value will be accepted.  However, if the DIGEST-MD5 SASL mechanism handler is configured with the ds-cfg-server-fqdn attribute, then the digest-uri value will be expected to be "ldap/" followed by the value of that configuration attribute.

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

diff --git a/opends/src/server/org/opends/server/messages/ExtensionsMessages.java b/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
index 94afc25..36d4a23 100644
--- a/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
+++ b/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
@@ -5492,6 +5492,16 @@
 
 
   /**
+   * The message ID for the message that will be used if the client request
+   * included an invalid digest URI.  This takes two arguments, which are the
+   * provided digest URI and the expected digest URI.
+   */
+  public static final int MSGID_SASLDIGESTMD5_INVALID_DIGEST_URI =
+       CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_MILD_ERROR | 529;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -6775,6 +6785,10 @@
                     "The DIGEST-MD5 credentials provided by the client " +
                     "requested an invalid quality of protection mechanism of " +
                     "%s");
+    registerMessage(MSGID_SASLDIGESTMD5_INVALID_DIGEST_URI,
+                    "The DIGEST-MD5 credentials provided by the client " +
+                    "requested an invalid digest URI of %s.  The expected " +
+                    "digest URI was %s");
     registerMessage(MSGID_SASLDIGESTMD5_CANNOT_PARSE_RESPONSE_DIGEST,
                     "The DIGEST-MD5 credentials provided by the client " +
                     "included a digest that could not be decoded as a " +

--
Gitblit v1.10.0