summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-26 12:29:08 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-26 12:29:08 +0000
commit1ca1b85c4c0bcf3315ef82316289fe03ecf11737 (patch)
tree99dd50a02351dfd97912ab1db28a931db653f648 /source4/torture/torture.c
parentee67d68f1c6d71d4d3fbe86899d5ea9f271cfbc8 (diff)
downloadsamba-1ca1b85c4c0bcf3315ef82316289fe03ecf11737.tar.gz
samba-1ca1b85c4c0bcf3315ef82316289fe03ecf11737.tar.bz2
samba-1ca1b85c4c0bcf3315ef82316289fe03ecf11737.zip
by default sign RPC over TCP but not RPC over SMB. I will add command line control soon
(This used to be commit 215852116c1fb8c0d8ef559155a3dd55346f0c31)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r--source4/torture/torture.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 0a1881d590..7055acbb85 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -150,6 +150,7 @@ static NTSTATUS torture_rpc_tcp(struct dcerpc_pipe **p,
pipe_name, nt_errstr(status)));
return status;
}
+ DEBUG(1,("Mapped to DCERPC/TCP port %u\n", port));
}
DEBUG(2,("Connecting to dcerpc server %s:%u\n", host, port));
@@ -164,6 +165,9 @@ static NTSTATUS torture_rpc_tcp(struct dcerpc_pipe **p,
/* always do NDR validation in smbtorture */
(*p)->flags |= DCERPC_DEBUG_VALIDATE_BOTH;
+ /* enable signing on tcp connections */
+ (*p)->flags |= DCERPC_SIGN;
+
/* bind to the pipe, using the uuid as the key */
status = dcerpc_bind_auth_ntlm(*p, pipe_uuid, pipe_version,
lp_workgroup(),
@@ -214,10 +218,7 @@ NTSTATUS torture_rpc_connection(struct dcerpc_pipe **p,
}
/* bind to the pipe, using the uuid as the key */
- status = dcerpc_bind_auth_ntlm(*p, pipe_uuid, pipe_version,
- lp_workgroup(),
- lp_parm_string(-1, "torture", "username"),
- lp_parm_string(-1, "torture", "password"));
+ status = dcerpc_bind_auth_none(*p, pipe_uuid, pipe_version);
if (!NT_STATUS_IS_OK(status)) {
dcerpc_pipe_close(*p);
return status;