mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
Found by Fabien Chevalier <fabien.chevalier@supelec.fr> and
JustFillBug <mozbugbox@yahoo.com.au> on the Samba lists - a 'max password age' of zero should be considered as 'never expire'. For the timebeing we just set it like -1, but we might revisit this for closer-to-ms behaviour. Andrew Bartlett (This used to be commit 9ffc490fce215dcaed8ebfc1db85f5017a692ca4)
This commit is contained in:
parent
aa4abfb3b5
commit
06549b8886
@ -1103,7 +1103,7 @@ BOOL pdb_set_pass_changed_now (SAM_ACCOUNT *sampass)
|
||||
return False;
|
||||
|
||||
if (!account_policy_get(AP_MAX_PASSWORD_AGE, &expire)
|
||||
|| (expire==(uint32)-1)) {
|
||||
|| (expire==(uint32)-1) || (expire == 0)) {
|
||||
if (!pdb_set_pass_must_change_time (sampass, get_time_t_max(), PDB_CHANGED))
|
||||
return False;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user