]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:auth: Handle expired accounts in authsam_account_ok() (CID 1603594)
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 11 Jun 2024 02:58:11 +0000 (14:58 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 11 Jun 2024 04:32:30 +0000 (04:32 +0000)
commitb42c489180474627270e09408f84841baa175157
tree042da607ac3f5873cc16b134d438837f498130db
parentfacb418c99d5be62ae7e111539ca497a783b6a37
s4:auth: Handle expired accounts in authsam_account_ok() (CID 1603594)

We check the ACB_PW_EXPIRED bit to determine whether the account is
expired. Since ACB_PW_EXPIRED can’t be represented in a 16‐bit integer,
we must increase the width of acct_flags so as not to lose that bit.

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/sam.c