s4:auth: check for user_info->mapped.account_name if it needs to be filled
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Mar 2022 22:14:10 +0000 (23:14 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 10 Mar 2022 03:16:35 +0000 (03:16 +0000)
commitc7b8c71b2b71bb9d95c33d403c4204376f443852
tree91e8c421e00d7f764dde582342a84d216e2ff7e2
parent52787b9c1e9370133ff4481c62c2e7b9393c2439
s4:auth: check for user_info->mapped.account_name if it needs to be filled

mapped_state is a special hack for authenticate_ldap_simple_bind_send()
in order to avoid some additional work in authsam_check_password_internals().

But that code will be changed in the next commits, so we can simplify
the logic and only check for user_info->mapped.account_name being NULL.
As it's the important factor that user_info->mapped.account_name is
non-NULL down in the auth stack.

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>
source4/auth/ntlm/auth.c