CVE-2021-20251 s4-rpc_server: Check badPwdCount update return status
commita268a1a0e304d0702469e4ac146d8af5e7384c39
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sat, 9 Jul 2022 03:55:02 +0000 (9 15:55 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 12 Sep 2022 23:07:37 +0000 (12 23:07 +0000)
treed6d377c25b566349454dcc9605a1ee4bfda3640b
parentbdfc9d96f8fe5070ab8a189bbf42ccb7e77afb73
CVE-2021-20251 s4-rpc_server: Check badPwdCount update return status

If the account has been locked out in the meantime (indicated by
NT_STATUS_ACCOUNT_LOCKED_OUT), we should return the appropriate error
code.

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

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/rpc_server/samr/samr_password.c