From 4f111ac4699519b125f5e8e985b85358e1ac9ba5 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?G=C3=BCnther=20Deschner?= Date: Tue, 5 May 2009 12:54:21 +0200 Subject: [PATCH] s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation. Based on patch from Blindauer Emmanuel . Guenther --- source/nsswitch/pam_winbind.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c index 26ef1d4..1211ffd 100644 --- a/source/nsswitch/pam_winbind.c +++ b/source/nsswitch/pam_winbind.c @@ -914,7 +914,8 @@ 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 == (int64_t)-1) || + (policy->expire == 0)) { return; } -- 1.6.2.2