summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Andersson <hean01@cendio.com>2018-04-17 16:57:05 +0200
committerHenrik Andersson <hean01@cendio.com>2018-04-17 16:57:05 +0200
commit567b1f74326c8ccacbeedc39f4833f543ace23c7 (patch)
treee638fcddaeaa2d29a8fb4d951ce592c21c55a458
parent0374d2ce9be783e5684de56c3728ecc6b47d2364 (diff)
downloadrdesktop-567b1f74326c8ccacbeedc39f4833f543ace23c7.zip
Clear password is smart card pin upon redirect
Upon a redirection, we have received a cookie that is used for authentication and we should not flag this as a pin code for the smartcard. This solves a problem with incorrect pin code when using smart card authentication and if redirected to a server were a session exists.
-rw-r--r--rdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rdp.c b/rdp.c
index 2edc14b..dfe79cc 100644
--- a/rdp.c
+++ b/rdp.c
@@ -390,6 +390,7 @@ rdp_send_client_info_pdu(uint32 flags, char *domain, char *user,
if (g_redirect == True && g_redirect_cookie_len > 0)
{
+ flags &= ~RDP_INFO_PASSWORD_IS_SC_PIN;
flags |= RDP_INFO_AUTOLOGON;
len_password = g_redirect_cookie_len;
len_password -= 2; /* subtract 2 bytes which is added below */