mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.
Patch from Blindauer Emmanuel <samba@mooby.net>. Guenther
This commit is contained in:
parent
2c4725462e
commit
290449aeae
@ -914,7 +914,7 @@ static void _pam_warn_password_expiry(struct pwb_context *ctx,
|
||||
/* now check for the global password policy */
|
||||
/* good catch from Ralf Haferkamp: an expiry of "never" is translated
|
||||
* to -1 */
|
||||
if (policy->expire <= 0) {
|
||||
if (policy->expire == -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user