From e5a62ca3ff418df74ffe0480946e9255bffdc1a5 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 20 Sep 2006 23:30:15 +0000
Subject: [PATCH] Update the LDAPAuthenticationHandler to enquote the realm value for DIGEST-MD5 authentication. If it is not quoted, then it will cause authentication failures if the server sends a realm that is a DN with multiple components (e.g., "dc=example,dc=com").
---
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
index 6f94fed..5fb4367 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
@@ -1784,8 +1784,9 @@
if (realm != null)
{
- credBuffer.append(",realm=");
+ credBuffer.append(",realm=\"");
credBuffer.append(realm);
+ credBuffer.append("\"");
}
credBuffer.append(",nonce=\"");
--
Gitblit v1.10.0