mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
19.26.2013 5e0a063bee0766042c2b1a68cca306737d65ecbd
refs
author Ludovic Poitou <ludovic.poitou@forgerock.com>
Tuesday, March 19, 2013 18:26 +0100
committer Ludovic Poitou <ludovic.poitou@forgerock.com>
Tuesday, March 19, 2013 18:26 +0100
commit5e0a063bee0766042c2b1a68cca306737d65ecbd
tree 9965ffb0ff0cb2f957e1b5fabd69653e8afe2bbe tree | zip | gz
parent c2be303d8b7d9d643164fd84e07ccbc1a810c699 view | diff
Fix OPENDJ-819 : Malformed proxyAs arguments fail with ASN.1 decoding error.
This is just a one liner to use the proper error message (looks like a copy/paste mistake).
The error reported will now show as below:

$ ldapsearch -h localhost -p 1389 -D "uid=user.0,ou=people,dc=example,dc=com" -w password -Y "uid=user.1,ou=people,dc=example,dc=com" -b "dc=example,dc=com" 'uid=user.1'
SEARCH operation failed
Result Code: 2 (Protocol Error)
Additional Information: The authorization ID "uid=user.1,ou=people,dc=example,dc=com" contained in the proxied authorization V2 control is invalid because it does not start with "dn:" to indicate a user DN or "u:" to indicate a username
1 files modified
4 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java 4 ●●●● diff | view | raw | blame | history