NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx,
const char *host,
const char *share,
+ struct loadparm_context *lp_ctx,
struct resolve_context *resolve_ctx,
struct cli_credentials *credentials,
struct smb2_tree **tree,
if (options.smb2) {
status = smb2_connect(NULL, servers[i].server_name,
servers[i].share_name,
+ lp_ctx,
lpcfg_resolve_context(lp_ctx),
servers[i].credentials,
&servers[i].smb2_tree[j],
status = smb2_connect(tmp_ctx,
dcerpc_server_name(p),
FSHARE,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree_base,
status = smb2_connect(tmp_ctx,
dcerpc_server_name(p),
sc_map->ShadowCopyShareName,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree_snap,
status = smb2_connect(tmp_ctx,
dcerpc_server_name(p),
FSHARE,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree_base,
status = smb2_connect(mem_ctx,
host,
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
host,
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
host,
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
host,
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
host,
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
host,
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
torture_setting_string(torture, "host", NULL),
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
torture_setting_string(torture, "host", NULL),
"IPC$",
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(mem_ctx,
torture_setting_string(tctx, "host", NULL),
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree1,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree1,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree1,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree2,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree1a,
status = smb2_connect(tree1a,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree1b_base,
status = smb2_connect(tree1a,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree1b_base,
status = smb2_connect(torture,
host,
share,
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
credentials,
&tree,
status = smb2_connect(torture,
host,
share,
+ torture->lp_ctx,
lpcfg_resolve_context(torture->lp_ctx),
credentials,
&tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree,
smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2[i],
options.use_level2_oplocks = false;
status = smb2_connect(tctx, host, share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
tree, tctx->ev, &options,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2_2,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2_3,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2_4,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2_2,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2_3,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2_4,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree2,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree2,
status = smb2_connect(mem_ctx, host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree, tctx->ev, &options,
talloc_free(tree);
status = smb2_connect(mem_ctx, host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
&tree, tctx->ev, &options,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree3,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
creds1,
&tree2,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree1,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
&tree2_0,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
credentials1,
&tree1,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
anon_creds,
&anon_tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
user_creds,
&user_tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
user_creds,
&user_tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
anon_creds,
&anon_tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
anon_creds,
&anon_tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
creds,
&tree,
status = smb2_connect(tctx,
host,
share,
+ tctx->lp_ctx,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
tree,