CVE-2016-2111: s4:torture/rpc: fix rpc.pac 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/remote_pac.c

index 2b72f38ab3b24448d247948a1ca83d0aff36fb16..e880f806be5dbb1232b07cc1f9bb71bb2b8db1b5 100644 (file)
@@ -729,8 +729,8 @@ static bool test_S2U4Self(struct torture_context *tctx,
        chal = data_blob_const(ninfo.challenge,
                               sizeof(ninfo.challenge));
 
-       names_blob = NTLMv2_generate_names_blob(tctx, cli_credentials_get_workstation(client_creds),
-                                               cli_credentials_get_domain(client_creds));
+       names_blob = NTLMv2_generate_names_blob(tctx, cli_credentials_get_workstation(server_creds),
+                                               cli_credentials_get_domain(server_creds));
 
        status = cli_credentials_get_ntlm_response(client_creds, tctx,
                                                   &flags,