Test re-setting the challenge after an auth3 in RPC-NETLOGON
authorAndrew Bartlett <abartlet@samba.org>
Mon, 22 Sep 2008 22:37:16 +0000 (15:37 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 22 Sep 2008 22:37:16 +0000 (15:37 -0700)
source4/torture/rpc/netlogon.c

index 5ec2c29a203db638addf5cd0c16b8b39887e97c9..2522062696b614334b474a36fe22fe2c74f07fd4 100644 (file)
@@ -250,6 +250,10 @@ static bool test_SetupCredentials3(struct dcerpc_pipe *p, struct torture_context
        torture_assert(tctx, creds_client_check(creds, &credentials3), "Credential chaining failed");
 
        torture_comment(tctx, "negotiate_flags=0x%08x\n", negotiate_flags);
+       
+       /* Prove that requesting a challenge again won't break it */
+       status = dcerpc_netr_ServerReqChallenge(p, tctx, &r);
+       torture_assert_ntstatus_ok(tctx, status, "ServerReqChallenge");
 
        *creds_out = creds;
        return true;