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.
OpenDS Issue Number: 600
| | |
| | | |
| | | if (authorizationID == null) |
| | | { |
| | | return new ASN1OctetString(new ASN1OctetString().encode()); |
| | | return new ASN1OctetString(); |
| | | } |
| | | else |
| | | { |
| | | return new ASN1OctetString(authorizationID.encode()); |
| | | return authorizationID; |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | 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); |
| | |
| | | |
| | | 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); |