NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx,
const char *host,
- const char **ports,
const char *share,
struct resolve_context *resolve_ctx,
struct cli_credentials *credentials,
if (options.smb2) {
status = smb2_connect(NULL, servers[i].server_name,
- lpcfg_smb_ports(lp_ctx),
servers[i].share_name,
lpcfg_resolve_context(lp_ctx),
servers[i].credentials,
status = smb2_connect(tmp_ctx,
dcerpc_server_name(p),
- lpcfg_smb_ports(tctx->lp_ctx),
FSHARE,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
/* connect to snapshot share and verify pre-snapshot data */
status = smb2_connect(tmp_ctx,
dcerpc_server_name(p),
- lpcfg_smb_ports(tctx->lp_ctx),
sc_map->ShadowCopyShareName,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(tmp_ctx,
dcerpc_server_name(p),
- lpcfg_smb_ports(tctx->lp_ctx),
FSHARE,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
host,
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
host,
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
host,
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
host,
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
host,
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
host,
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
torture_setting_string(torture, "host", NULL),
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
torture_setting_string(torture, "host", NULL),
- lpcfg_smb_ports(torture->lp_ctx),
"IPC$",
lpcfg_resolve_context(torture->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(mem_ctx,
torture_setting_string(tctx, "host", NULL),
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
/* Create connection to IPC$ */
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
/* Create connection to IPC$ */
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
/* Create connection to IPC$ */
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
/* Create connection to IPC$ */
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
/* Create connection to IPC$ */
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(tree1a,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(tree1a,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(torture,
host,
- lpcfg_smb_ports(torture->lp_ctx),
share,
lpcfg_resolve_context(torture->lp_ctx),
credentials,
status = smb2_connect(torture,
host,
- lpcfg_smb_ports(torture->lp_ctx),
share,
lpcfg_resolve_context(torture->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
torture_assert_ntstatus_ok_goto(tctx,
smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
lpcfg_smbcli_options(tctx->lp_ctx, &options);
options.use_level2_oplocks = false;
- status = smb2_connect(tctx, host,
- lpcfg_smb_ports(tctx->lp_ctx), share,
+ status = smb2_connect(tctx, host, share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
tree, tctx->ev, &options,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
lpcfg_smbcli_options(tctx->lp_ctx, &options);
status = smb2_connect(mem_ctx, host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
if (!smb2_request_receive(req)) {
talloc_free(tree);
status = smb2_connect(mem_ctx, host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
creds1,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
credentials1,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
anon_creds,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
user_creds,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
user_creds,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
anon_creds,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
anon_creds,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
creds,
status = smb2_connect(tctx,
host,
- lpcfg_smb_ports(tctx->lp_ctx),
share,
lpcfg_resolve_context(tctx->lp_ctx),
samba_cmdline_get_creds(),