mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3/utils: net time always hardcoded to use SMB1
net time ... cmd ignores any configuration to do with min/max protocols and connects allways with smb1 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
@ -47,8 +47,9 @@ static time_t cli_servertime(const char *host,
|
||||
goto done;
|
||||
}
|
||||
|
||||
status = smbXcli_negprot(cli->conn, cli->timeout, PROTOCOL_CORE,
|
||||
PROTOCOL_NT1);
|
||||
status = smbXcli_negprot(cli->conn, cli->timeout,
|
||||
lp_client_min_protocol(),
|
||||
lp_client_max_protocol());
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
fprintf(stderr, _("Protocol negotiation failed: %s\n"),
|
||||
nt_errstr(status));
|
||||
|
Reference in New Issue
Block a user