summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-12-09 09:06:21 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-12-19 09:48:24 +0100
commit65be3af952791de16a683a1fefc6d5721822245a (patch)
tree4212738b125a96008308581d3eed7d1aa6bb4b54
parentaf9783300c8f2c8c56e958139750e4df7a868a44 (diff)
downloadsamba-65be3af952791de16a683a1fefc6d5721822245a.tar.gz
s3:torture: Use cli_tree_connect_creds() where we may use share level auth
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r--source3/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 8f0f13676a0..7072f3ccd1c 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -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)) {