s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.
authorGünther Deschner <gd@samba.org>
Tue, 5 May 2009 10:54:21 +0000 (12:54 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 5 May 2009 10:54:21 +0000 (12:54 +0200)
Patch from Blindauer Emmanuel <samba@mooby.net>.

Guenther

nsswitch/pam_winbind.c

index 0d33f59a23c62b50e53b3bdddd5d29e4fe8f4aa1..545c87d0c4b811b168b0e76bafa1dd0da17484b3 100644 (file)
@@ -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;
        }