summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-06-19 01:57:16 +0200
committerGünther Deschner <gd@samba.org>2009-06-19 01:59:17 +0200
commit5d40677a9b7d97a028878422be3dc1ace4bfeecf (patch)
tree7f2d317646aad20f6ee92fc8fba4458cbdfbf503 /nsswitch
parent5a9ca3db032af5938e9709f3355a1f45b1e08d27 (diff)
downloadsamba-5d40677a9b7d97a028878422be3dc1ace4bfeecf.tar.gz
samba-5d40677a9b7d97a028878422be3dc1ace4bfeecf.tar.bz2
samba-5d40677a9b7d97a028878422be3dc1ace4bfeecf.zip
s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.
Based on patch from Blindauer Emmanuel <samba@mooby.net>. Guenther
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 545c87d0c4..e90f1b75ad 100644
--- a/nsswitch/pam_winbind.c
+++ b/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 == -1) {
+ if ((policy->expire == (int64_t)-1) ||
+ (policy->expire == 0)) {
return;
}