143 |
uint32 sec_flags = encryption ? (SEC_LOGON_INFO | SEC_ENCRYPT) : SEC_LOGON_INFO; |
uint32 sec_flags = encryption ? (SEC_LOGON_INFO | SEC_ENCRYPT) : SEC_LOGON_INFO; |
144 |
STREAM s; |
STREAM s; |
145 |
|
|
146 |
if (1 == server_rdp_version) |
if (!use_rdp5 || 1 == server_rdp_version) |
147 |
{ |
{ |
148 |
DEBUG_RDP5(("Sending RDP4-style Logon packet\n")); |
DEBUG_RDP5(("Sending RDP4-style Logon packet\n")); |
149 |
|
|
181 |
with a 0 length block as well */ |
with a 0 length block as well */ |
182 |
out_uint16_le(s, len_program); |
out_uint16_le(s, len_program); |
183 |
out_uint16_le(s, len_directory); |
out_uint16_le(s, len_directory); |
184 |
|
rdp_out_unistr(s, domain, len_domain); |
185 |
if (flags & RDP_LOGON_AUTO) |
if (flags & RDP_LOGON_AUTO) |
186 |
{ |
{ |
187 |
rdp_out_unistr(s, password, len_password); |
rdp_out_unistr(s, password, len_password); |
188 |
} |
} |
|
rdp_out_unistr(s, domain, len_domain); |
|
189 |
rdp_out_unistr(s, user, len_user); |
rdp_out_unistr(s, user, len_user); |
190 |
out_uint16(s, 0); |
out_uint16(s, 0); |
191 |
out_uint16(s, 0); |
out_uint16(s, 0); |