From 07ab33010faa0b4eb2b30ffc3ec79c948c43684f Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Wed, 16 Nov 2011 15:05:15 +0000
Subject: [PATCH] Fix for OPENDJ-352: Allow authentication with a plain ID instead of a DN in the DSML Gateway. This change introduce a new property to specify if the authentication Id part of the Authorization HTTP header, in the Basic form, is a plain identifier, instead of a DistinguishedName (default).  Tests were done manually with soapui, and the various options for authenticating.

---
 opends/resource/dsml/webapp/web.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/opends/resource/dsml/webapp/web.xml b/opends/resource/dsml/webapp/web.xml
index ae60a94..da07b86 100644
--- a/opends/resource/dsml/webapp/web.xml
+++ b/opends/resource/dsml/webapp/web.xml
@@ -32,6 +32,13 @@
 -->
 
   <context-param>
+    <description>A flag to specify if the HTTP Authorization header field's
+    Basic credentials is built with a plain ID (if false, it's a DN)</description>
+    <param-name>ldap.authzidtypeisid</param-name>
+    <param-value>false</param-value>
+  </context-param>
+
+  <context-param>
     <description>A flag to specify if the ldap.port is the SSL secured port</description>
     <param-name>ldap.usessl</param-name>
     <param-value>false</param-value>
@@ -44,7 +51,7 @@
   </context-param>
 
   <context-param>
-    <description>A flag to specify is all certificates should be blindly trusted</description>
+    <description>A flag to specify if all certificates should be blindly trusted</description>
     <param-name>ldap.trustall</param-name>
     <param-value>false</param-value>
   </context-param>

--
Gitblit v1.10.0