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
This commit is contained in:
Henrik Andersson 2019-01-22 13:20:13 +01:00
parent 2e80cdf396
commit d12204b424

View File

@ -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;