git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed1197
)
CVE-2016-2111: s4:torture/rpc: fix rpc.samba3.netlogon ntlmv2 test
author
Stefan Metzmacher
<metze@samba.org>
Sat, 12 Dec 2015 21:23:18 +0000
(22:23 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 12 Apr 2016 17:25:23 +0000
(19:25 +0200)
The computer name of the NTLMv2 blob needs to match
the schannel connection.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11749
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source4/torture/rpc/samba3rpc.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/samba3rpc.c
b/source4/torture/rpc/samba3rpc.c
index c454257874af2a72f6e458e087b4b98e9d1ea7d9..9e521cd55bdbb483d56746106dff10692d6590b8 100644
(file)
--- a/
source4/torture/rpc/samba3rpc.c
+++ b/
source4/torture/rpc/samba3rpc.c
@@
-1189,8
+1189,8
@@
static bool schan(struct torture_context *tctx,
generate_random_buffer(chal.data, chal.length);
names_blob = NTLMv2_generate_names_blob(
mem_ctx,
- cli_credentials_get_workstation(
user
_creds),
- cli_credentials_get_domain(
user
_creds));
+ cli_credentials_get_workstation(
wks
_creds),
+ cli_credentials_get_domain(
wks
_creds));
status = cli_credentials_get_ntlm_response(
user_creds, mem_ctx, &flags, chal, NULL, names_blob,
&lm_resp, &nt_resp, NULL, NULL);