]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-25717: s3:rpcclient: 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>
source3/rpcclient/cmd_netlogon.c

index d5c1b91f2bee88b75da466c9af8c9022aebb5419..4ea63e40b8dbc4743717a8de0f376da1d0ad27c1 100644 (file)
@@ -496,7 +496,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
        uint32_t logon_param = 0;
        const char *workstation = NULL;
        struct netr_SamInfo3 *info3 = NULL;
-       uint8_t authoritative = 0;
+       uint8_t authoritative = 1;
        uint32_t flags = 0;
        uint16_t validation_level;
        union netr_Validation *validation = NULL;