#include "lib/cmdline/popt_common.h"
#include "lib/events/events.h"
#include "torture/torture.h"
+#include "param/param.h"
#include "torture/smb2/proto.h"
int opcode;
struct smb2_request *req;
- status = smb2_connect(mem_ctx, host, share, credentials, &tree,
+ status = smb2_connect(mem_ctx, host, share,
+ lp_name_resolve_order(torture->lp_ctx),
+ credentials, &tree,
event_context_find(mem_ctx));
if (!NT_STATUS_IS_OK(status)) {
printf("Connection failed - %s\n", nt_errstr(status));
smb2_transport_send(req);
if (!smb2_request_receive(req)) {
talloc_free(tree);
- status = smb2_connect(mem_ctx, host, share, credentials, &tree,
+ status = smb2_connect(mem_ctx, host, share,
+ lp_name_resolve_order(torture->lp_ctx),
+ credentials, &tree,
event_context_find(mem_ctx));
if (!NT_STATUS_IS_OK(status)) {
printf("Connection failed - %s\n", nt_errstr(status));
const char *share = torture_setting_string(tctx, "share", NULL);
struct cli_credentials *credentials = cmdline_credentials;
- status = smb2_connect(tctx, host, share, credentials, tree,
+ status = smb2_connect(tctx, host, share,
+ lp_name_resolve_order(tctx->lp_ctx),
+ credentials, tree,
event_context_find(tctx));
if (!NT_STATUS_IS_OK(status)) {
printf("Failed to connect to SMB2 share \\\\%s\\%s - %s\n",