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

Ludovic Poitou
19.26.2013 fec8aebf1452ba0a07064c090bf1b620709d5ef5
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
commitfec8aebf1452ba0a07064c090bf1b620709d5ef5
tree 49af6457025c960d88adf1ffc773e75edc61670f tree | zip | gz
parent c873b9810abea368e6c379db0ab796948e324240 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
opends/src/server/org/opends/server/controls/ProxiedAuthV2Control.java 4 ●●●● diff | view | raw | blame | history