diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-03 08:28:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:30 -0500 |
commit | a67ec52fdecf07c6685e986c9a10cca526094da1 (patch) | |
tree | 9c8d47aebe0ad9f88ba1fc8c2aad0ddb6db85ac2 /source4/torture/torture.c | |
parent | a560082c60e618de327170dbcb8107ab988913fb (diff) | |
download | samba-a67ec52fdecf07c6685e986c9a10cca526094da1.tar.gz samba-a67ec52fdecf07c6685e986c9a10cca526094da1.tar.bz2 samba-a67ec52fdecf07c6685e986c9a10cca526094da1.zip |
r2200: solved another piece of the lsakey puzzle - the session key for lsa
encryption on ncacn_ip_tcp is a fixed buffer! I don't yet know what
the buffer is, but this code proves its the same buffer for different
w2k3 servers and different user passwords, plus it is independent of
the negotiated NTLMSSP session key.
(This used to be commit 05fd38f3cfd9476bc1cf7fed838a942a75569c0a)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r-- | source4/torture/torture.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c index b1e6695e9e..863fe9d4f5 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -158,11 +158,12 @@ NTSTATUS torture_rpc_connection(struct dcerpc_pipe **p, return status; } -/* open a rpc connection to a named pipe */ -NTSTATUS torture_rpc_connection_smb(struct dcerpc_pipe **p, - const char *pipe_name, - const char *pipe_uuid, - uint32_t pipe_version) +/* open a rpc connection to a specific transport */ +NTSTATUS torture_rpc_connection_transport(struct dcerpc_pipe **p, + const char *pipe_name, + const char *pipe_uuid, + uint32_t pipe_version, + enum dcerpc_transport_t transport) { NTSTATUS status; const char *binding = lp_parm_string(-1, "torture", "binding"); @@ -181,7 +182,7 @@ NTSTATUS torture_rpc_connection_smb(struct dcerpc_pipe **p, return status; } - b.transport = NCACN_NP; + b.transport = transport; status = dcerpc_pipe_connect_b(p, &b, pipe_uuid, pipe_version, lp_parm_string(-1, "torture", "userdomain"), |