CVE-2016-2111: s4:torture/rpc: fix rpc.samba3.netlogon ntlmv2 test
authorStefan Metzmacher <metze@samba.org>
Sat, 12 Dec 2015 21:23:18 +0000 (22:23 +0100)
committerStefan 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

index c454257874af2a72f6e458e087b4b98e9d1ea7d9..9e521cd55bdbb483d56746106dff10692d6590b8 100644 (file)
@@ -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);