]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-25717: s4:torture: start with authoritative = 1
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Oct 2021 15:42:41 +0000 (17:42 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Nov 2021 09:52:10 +0000 (10:52 +0100)
This is not strictly needed, but makes it easier to audit
that we don't miss important places.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14556

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/samlogon.c
source4/torture/rpc/schannel.c

index 76933b8869ee96deced495b7309746f32e430582..703e25fe3c5119318be52fb84e2cf8bcde95bbb0 100644 (file)
@@ -1407,7 +1407,7 @@ static bool test_SamLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
 
        union netr_LogonLevel logon;
        union netr_Validation validation;
-       uint8_t authoritative = 0;
+       uint8_t authoritative = 1;
        uint32_t flags = 0;
 
        ZERO_STRUCT(logon);
@@ -1520,7 +1520,7 @@ bool test_InteractiveLogon(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
 
        union netr_LogonLevel logon;
        union netr_Validation validation;
-       uint8_t authoritative = 0;
+       uint8_t authoritative = 1;
        struct dcerpc_binding_handle *b = p->binding_handle;
 
        ZERO_STRUCT(a);
index fff0b1aacbdd2b189c842a383ee3022ccb87b333..6dc58c8607605f739a624f07bc9c12e47e009904 100644 (file)
@@ -50,7 +50,7 @@ bool test_netlogon_ex_ops(struct dcerpc_pipe *p, struct torture_context *tctx,
        struct netr_NetworkInfo ninfo;
        union netr_LogonLevel logon;
        union netr_Validation validation;
-       uint8_t authoritative = 0;
+       uint8_t authoritative = 1;
        uint32_t _flags = 0;
        DATA_BLOB names_blob, chal, lm_resp, nt_resp;
        int i;