s3:torture: Use cli_tree_connect_creds() where we may use share level auth
authorStefan Metzmacher <metze@samba.org>
Fri, 9 Dec 2016 08:06:21 +0000 (09:06 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 19 Dec 2016 08:48:24 +0000 (09:48 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/torture/torture.c

index 8f0f13676a0e347742320cb92c83743aba19b88d..7072f3ccd1cdc9ab67c78353735e307d0dc78c3b 100644 (file)
@@ -1341,7 +1341,7 @@ static bool run_tcon_test(int dummy)
                return False;
        }
 
-       status = cli_tree_connect(cli, share, "?????", password);
+       status = cli_tree_connect_creds(cli, share, "?????", torture_creds);
        if (!NT_STATUS_IS_OK(status)) {
                printf("%s refused 2nd tree connect (%s)\n", host,
                       nt_errstr(status));
@@ -1466,7 +1466,7 @@ static bool tcon_devtest(struct cli_state *cli,
        NTSTATUS status;
        bool ret;
 
-       status = cli_tree_connect(cli, myshare, devtype, password);
+       status = cli_tree_connect_creds(cli, myshare, devtype, torture_creds);
 
        if (NT_STATUS_IS_OK(expected_error)) {
                if (NT_STATUS_IS_OK(status)) {