summaryrefslogtreecommitdiff
path: root/source3/utils/net_time.c
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-11-19 12:38:18 +0000
committerRalph Boehme <slow@samba.org>2019-12-05 17:14:46 +0000
commitaca1c949023bf4ac620fe8d21a5e2a6e12c48dae (patch)
treef6cab66aab5ae314b77ad88c47e5be37bb2688a5 /source3/utils/net_time.c
parent921f9f797f125d5e7cfe5505cd4287d23c2ae8f9 (diff)
downloadsamba-aca1c949023bf4ac620fe8d21a5e2a6e12c48dae.tar.gz
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>
Diffstat (limited to 'source3/utils/net_time.c')
-rw-r--r--source3/utils/net_time.c5
1 files changed, 3 insertions, 2 deletions
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));