s4:auth: encrypt_user_info() should set password_state instead of mapped_state
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Mar 2022 22:14:38 +0000 (23:14 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Mar 2022 09:46:31 +0000 (09:46 +0000)
commitdb17de0b611e4d5de824fe3790c81f17805ec23c
treee028696dc331931f9305a3452e7a1d1000ab4926
parent2d425bb116a93ed219f01ee0203b58867748ae8b
s4:auth: encrypt_user_info() should set password_state instead of mapped_state

user_info->mapped_state has nothing to do with enum auth_password_state,
user_info->password_state is the one that holds the auth_password_state value.

Luckily user_info->password_state was never referenced in the
encrypt_user_info() callers.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit a6fb598d9dcbfe21ef285b5f30fabcb88a259c93)
source4/auth/ntlm/auth_util.c