1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:libsmb: add CLI_FULL_CONNECTION_FORCE_SMB1

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2017-06-19 08:16:57 +02:00
parent 5be4d6d50e
commit 5a05b0b169
2 changed files with 5 additions and 0 deletions

View File

@ -125,5 +125,6 @@ struct file_info {
#define CLI_FULL_CONNECTION_FORCE_DOS_ERRORS 0x0080
#define CLI_FULL_CONNECTION_FORCE_ASCII 0x0100
#define CLI_FULL_CONNECTION_USE_NT_HASH 0x0200
#define CLI_FULL_CONNECTION_FORCE_SMB1 0x0400
#endif /* _CLIENT_H */

View File

@ -2780,6 +2780,10 @@ static struct tevent_req *cli_start_connection_send(
state->max_protocol = lp_client_max_protocol();
}
if (flags & CLI_FULL_CONNECTION_FORCE_SMB1) {
state->max_protocol = MIN(state->max_protocol, PROTOCOL_NT1);
}
subreq = cli_connect_nb_send(state, ev, dest_host, dest_ss, port,
0x20, my_name, signing_state, flags);
if (tevent_req_nomem(subreq, req)) {