diff options
| author | Jack Magne <jmagne@dhcp-16-206.sjc.redhat.com> | 2016-04-27 13:52:10 -0700 |
|---|---|---|
| committer | Jack Magne <jmagne@dhcp-16-206.sjc.redhat.com> | 2016-05-12 15:31:14 -0700 |
| commit | 072a8760b2530f3079aead92791553b2120d42b5 (patch) | |
| tree | aaa7b1f3571d454cf4ac6537bb1c97b85998a342 /base/common/src/org | |
| parent | b0ee4e8ea25f8a645015ace4eb5413fb11e96f50 (diff) | |
| download | pki-072a8760b2530f3079aead92791553b2120d42b5.tar.gz pki-072a8760b2530f3079aead92791553b2120d42b5.tar.xz pki-072a8760b2530f3079aead92791553b2120d42b5.zip | |
TPS auth special characters fix.
Ticket #1636.
Smartcard token enroll/format fails when the ldap user has special characters in userid or password
Tested with both esc and tpsclient. The problem was when using a real card because the client uri encodes
the authentication creds and the server needs to decode them.
Diffstat (limited to 'base/common/src/org')
| -rw-r--r-- | base/common/src/org/dogtagpki/tps/msg/TPSMessage.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/common/src/org/dogtagpki/tps/msg/TPSMessage.java b/base/common/src/org/dogtagpki/tps/msg/TPSMessage.java index 84e991e5a..f622b9b4d 100644 --- a/base/common/src/org/dogtagpki/tps/msg/TPSMessage.java +++ b/base/common/src/org/dogtagpki/tps/msg/TPSMessage.java @@ -456,17 +456,17 @@ public class TPSMessage { break; case MSG_EXTENDED_LOGIN_RESPONSE: result = - new ExtendedLoginResponseMsg(op_val, - get(UID_NAME), - get(PASSWORD_NAME), - extsMap); + new ExtendedLoginResponseMsg(op_val, + Util.uriDecode(get(UID_NAME)), + Util.uriDecode(get(PASSWORD_NAME)), + extsMap); break; case MSG_LOGIN_REQUEST: break; case MSG_LOGIN_RESPONSE: result = - new LoginResponseMsg(get(SCREEN_NAME_NAME), - get(PASSWORD_NAME_1)); + new LoginResponseMsg(Util.uriDecode(get(SCREEN_NAME_NAME)), + Util.uriDecode(get(PASSWORD_NAME_1))); break; case MSG_NEW_PIN_REQUEST: break; |
