From: Stefan Metzmacher Date: Thu, 3 Mar 2022 22:24:25 +0000 (+0100) Subject: s3:auth: make_user_info_map() should not set mapped_state X-Git-Tag: samba-4.14.13~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57401a170aaa097e42c6e310e7ed76d9ae5a0b60;p=thirdparty%2Fsamba.git s3:auth: make_user_info_map() should not set mapped_state mapped_state is only evaluated in authsam_check_password_internals() of auth_sam.c in source4, so setting it in the auth3 code doesn't make any difference. I've proved that with an SMB_ASSERT() and a full pipeline not triggering it. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13879 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett (cherry picked from commit c56cb12f347b7582290ce1d4dfe3959d69050bd9) --- diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 9d9f2234f21..a0260b67c19 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -136,8 +136,6 @@ NTSTATUS make_user_info_map(TALLOC_CTX *mem_ctx, lm_interactive_pwd, nt_interactive_pwd, plaintext, password_state); if (NT_STATUS_IS_OK(result)) { - /* We have tried mapping */ - (*user_info)->mapped_state = true; /* did we actually map the user to a different name? */ (*user_info)->was_mapped = was_mapped; }