]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/utils: net time always hardcoded to use SMB1
authorNoel Power <noel.power@suse.com>
Tue, 19 Nov 2019 12:38:18 +0000 (12:38 +0000)
committerRalph Boehme <slow@samba.org>
Thu, 5 Dec 2019 17:14:46 +0000 (17:14 +0000)
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>
source3/utils/net_time.c

index 5e6cf2ea15de972148795ff198cd555c7a26d8c1..d102f84614f4e20f1a3da91372d8ebde54bd094e 100644 (file)
@@ -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));