summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-02 16:20:00 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-02 16:20:00 +0100
commit29a20af75f150a1774b187ce64199e5f0bcc2361 (patch)
treefe7e41923244415c154d11ad79fc9338453fe41d /source4/torture
parentff36c52d8c7f146eca9c6c678456708a8e2efbab (diff)
downloadsamba-29a20af75f150a1774b187ce64199e5f0bcc2361.tar.gz
samba-29a20af75f150a1774b187ce64199e5f0bcc2361.tar.bz2
samba-29a20af75f150a1774b187ce64199e5f0bcc2361.zip
Remove use of global_loadparm for SMB2 client connections.
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/gentest.c3
-rw-r--r--source4/torture/smb2/scan.c6
-rw-r--r--source4/torture/smb2/util.c3
3 files changed, 8 insertions, 4 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index c9cb715a8b..02eecd7f40 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -233,7 +233,8 @@ static bool connect_servers(struct event_context *ev,
servers[i].credentials,
&servers[i].smb2_tree[j],
ev, &smb_options,
- lp_socket_options(lp_ctx)
+ lp_socket_options(lp_ctx),
+ lp_gensec_settings(lp_ctx, lp_ctx)
);
} else {
status = smbcli_tree_full_connection(NULL,
diff --git a/source4/torture/smb2/scan.c b/source4/torture/smb2/scan.c
index f0d25017c6..a5e682c111 100644
--- a/source4/torture/smb2/scan.c
+++ b/source4/torture/smb2/scan.c
@@ -209,7 +209,8 @@ bool torture_smb2_scan(struct torture_context *torture)
share,
lp_resolve_context(torture->lp_ctx),
credentials, &tree, torture->ev, &options,
- lp_socket_options(torture->lp_ctx));
+ lp_socket_options(torture->lp_ctx),
+ lp_gensec_settings(torture, torture->lp_ctx));
if (!NT_STATUS_IS_OK(status)) {
printf("Connection failed - %s\n", nt_errstr(status));
return false;
@@ -228,7 +229,8 @@ bool torture_smb2_scan(struct torture_context *torture)
share,
lp_resolve_context(torture->lp_ctx),
credentials, &tree, torture->ev, &options,
- lp_socket_options(torture->lp_ctx));
+ lp_socket_options(torture->lp_ctx),
+ lp_gensec_settings(mem_ctx, torture->lp_ctx));
if (!NT_STATUS_IS_OK(status)) {
printf("Connection failed - %s\n", nt_errstr(status));
return false;
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c
index e53b6cddac..b17dc246e3 100644
--- a/source4/torture/smb2/util.c
+++ b/source4/torture/smb2/util.c
@@ -280,7 +280,8 @@ bool torture_smb2_connection(struct torture_context *tctx, struct smb2_tree **tr
lp_resolve_context(tctx->lp_ctx),
credentials, tree,
tctx->ev, &options,
- lp_socket_options(tctx->lp_ctx)
+ lp_socket_options(tctx->lp_ctx),
+ lp_gensec_settings(tctx, tctx->lp_ctx)
);
if (!NT_STATUS_IS_OK(status)) {
printf("Failed to connect to SMB2 share \\\\%s\\%s - %s\n",