s4:auth_winbind: only call authsam_logon_success_accounting() for local users
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Jan 2018 08:23:26 +0000 (09:23 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 19 Mar 2018 19:30:51 +0000 (20:30 +0100)
commitfd7c91825646aed612c0df1a641f458aab4f21a5
tree1f700a018bd5d6fd32ab4275f7454c1d4f24909b
parent4565ac59984895ba8235a2da5afeaec48e97c41d
s4:auth_winbind: only call authsam_logon_success_accounting() for local users

There's no need to do a crack_name_to_nt4_name(), as the authentication
already provides the nt4 domain and account names.

This should only happen on an RODC, that we use the winbind auth module
for local users. So we should make sure we only try to reset
the badPwdCount for users of our own domain.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/auth/ntlm/auth_winbind.c