33fccb8bbe
Windows does not check the password on an account that has been locked. Heimdal does not implement locked_out, however the Samba hdb backend does, and needs this checked before passwords (for bad password lockout), not after in kdc_check_access(). Based on work to update Samba to current Heimdal by Gary Lockyer <gary@catalyst.net.nz> and including cherry-pick of Samba commit 580a705b83014e94556b9d5a8877406816e02190 which noted that we need to return KRB5KDC_ERR_CLIENT_REVOKED to match Windows. Signed-off-by: Andrew Bartlett <abartlet@samba.org>