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/controls/ProxiedAuthV2Control.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java b/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java
index 34d8f06..1814727 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java
@@ -132,11 +132,11 @@
if (authorizationID == null)
{
- return new ASN1OctetString(new ASN1OctetString().encode());
+ return new ASN1OctetString();
}
else
{
- return new ASN1OctetString(authorizationID.encode());
+ return authorizationID;
}
}
--
Gitblit v1.10.0