From 50e5837c0fd8aafa7d4bb5527c46bf379866fcd0 Mon Sep 17 00:00:00 2001 From: "zihao.jiang" Date: Fri, 2 Oct 2015 16:09:12 +0800 Subject: [PATCH] Server/Shadow: Fix Authentication in shadow_client.c. Currently if username or password is not set, the authentication is always failed because the authentication callback is never tried. Fix to always give a chance to try the subsystem authentication callback even if username / password is not set. --- server/shadow/shadow_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/shadow/shadow_client.c b/server/shadow/shadow_client.c index fc141fbe1..258ba3529 100644 --- a/server/shadow/shadow_client.c +++ b/server/shadow/shadow_client.c @@ -239,7 +239,7 @@ BOOL shadow_client_post_connect(freerdp_peer* peer) if (settings->Username && settings->Password) settings->AutoLogonEnabled = TRUE; - if (settings->AutoLogonEnabled && server->authentication) + if (server->authentication) { if (subsystem->Authenticate) {