From aca1c949023bf4ac620fe8d21a5e2a6e12c48dae Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 19 Nov 2019 12:38:18 +0000 Subject: 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 Reviewed-by: Ralph Boehme --- source3/utils/net_time.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/utils/net_time.c') diff --git a/source3/utils/net_time.c b/source3/utils/net_time.c index 5e6cf2ea15d..d102f84614f 100644 --- a/source3/utils/net_time.c +++ b/source3/utils/net_time.c @@ -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)); -- cgit v1.2.1