From df7e5129e5b4ad17f9a614265f29ab8eab9d1266 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 22 Oct 2006 04:38:52 +0000
Subject: [PATCH] Update the server and tools to use the correct encoding for the proxied authorization v2 control.  The encoding was based on a pre-RFC draft that wrapped the authorization ID in an ASN.1 octet string, but the official specification in RFC 4370 does not include this wrapper.  This change removes the wrapper from the value.

---
 opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java
index 7cd8f0c..0c40f4b 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPModify.java
@@ -822,8 +822,7 @@
 
     if (proxyAuthzID.isPresent())
     {
-      ASN1OctetString authzIDOS  = new ASN1OctetString(proxyAuthzID.getValue());
-      ASN1OctetString proxyValue = new ASN1OctetString(authzIDOS.encode());
+      ASN1OctetString proxyValue = new ASN1OctetString(proxyAuthzID.getValue());
 
       LDAPControl proxyControl =
         new LDAPControl(OID_PROXIED_AUTH_V2, true, proxyValue);

--
Gitblit v1.10.0