From d12204b424c82253d9da718fddb1b1a1d945d3a8 Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Tue, 22 Jan 2019 13:20:13 +0100 Subject: [PATCH] Bumb version of supported redirect PDU Before this change we announce that we support redirection packet version 3 (Microsoft RDP 5.1 and 5.2 clients), this makes the server to only send back LB_TARGET_NET_ADDRESS which includes an IP address for the redirection. Announcing version 4 (Microsoft RDP 6.0 and 6.1 clients) will make the server to send a LB_TARGET_FQDN which solves a few problems, for example using kerberos authentication. Fixes issue #303 --- secure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secure.c b/secure.c index f548a4f..5ca0d1a 100644 --- a/secure.c +++ b/secure.c @@ -480,7 +480,7 @@ sec_out_mcs_connect_initial_pdu(STREAM s, uint32 selected_protocol) out_uint16_le(s, 12); /* length */ cluster_flags |= SEC_CC_REDIRECTION_SUPPORTED; - cluster_flags |= (SEC_CC_REDIRECT_VERSION_3 << 2); + cluster_flags |= (SEC_CC_REDIRECT_VERSION_4 << 2); if (g_console_session || g_redirect_session_id != 0) cluster_flags |= SEC_CC_REDIRECT_SESSIONID_FIELD_VALID;