]> 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>
Tue, 9 Nov 2021 19:45:32 +0000 (19:45 +0000)
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 8c2a97cf2052b7659b52c838d566bd34e63e4d8c..911407b16c508d6a9b3505d255b67862714db002 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 6784e56991c2a802d2d3fd4cd096be35a9c2baeb..85807e6aeaba8e7bc4b00ff59cd6d1f2e3857ace 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;