1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

CVE-2020-25717: s3:auth: start with authoritative = 1

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>
This commit is contained in:
Stefan Metzmacher 2021-10-26 17:42:41 +02:00 committed by Joseph Sutton
parent dd88bd9f27
commit ae21152809
2 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ NTSTATUS auth_check_password_session_info(struct auth4_context *auth_context,
{
NTSTATUS nt_status;
void *server_info;
uint8_t authoritative = 0;
uint8_t authoritative = 1;
struct tevent_context *ev = NULL;
struct tevent_req *subreq = NULL;
bool ok;

View File

@ -120,7 +120,7 @@ static NTSTATUS check_samba4_security(
NTSTATUS nt_status;
struct auth_user_info_dc *user_info_dc;
struct auth4_context *auth4_context;
uint8_t authoritative = 0;
uint8_t authoritative = 1;
struct auth_serversupplied_info *server_info = NULL;
nt_status = make_auth4_context_s4(auth_context, mem_ctx, &auth4_context);