From e2c4dbf1affc7f5128dc5ef4d0f181d061174a90 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Thu, 23 Jul 2009 19:59:01 +0000 Subject: [PATCH] don't mark never expired accounts as disabled - patch from Christoph Brill --- sesman/verify_user.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sesman/verify_user.c b/sesman/verify_user.c index edfd4572..18980aaf 100644 --- a/sesman/verify_user.c +++ b/sesman/verify_user.c @@ -164,6 +164,10 @@ auth_check_pwd_chg(char* user) now=g_time1(); today=now/SECS_PER_DAY; + if (stp->sp_expire == -1) + { + return AUTH_PWD_CHG_OK; + } if (today >= (stp->sp_lstchg + stp->sp_max - stp->sp_warn)) { return AUTH_PWD_CHG_CHANGE;