From d1b99b471344c3a23875559aa30cba0161c19c75 Mon Sep 17 00:00:00 2001 From: katagia Date: Thu, 24 Apr 2003 16:19:52 +0000 Subject: [PATCH] expire-month wasn't read from existing user --- lam/lib/account.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 4d95113d..9df0adba 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -465,7 +465,7 @@ function loaduser($dn) { // Will load all needed values from an existing account if ($attr['shadowExpire'][0]) { $date = getdate ($attr['shadowExpire'][0]*86400); $_SESSION['account']->unix_pwdexpire_day = $date['mday']; - $_SESSION['account']->unix_pwdexpire_mon = $date['month']; // *******************Fixme How to get a numbermonth? + $_SESSION['account']->unix_pwdexpire_mon = $date['mon']; $_SESSION['account']->unix_pwdexpire_yea = $date['year']; } if ($attr['pwdCanChange'][0]) $_SESSION['account']->smb_pwdcanchange = $attr['pwdCanChange'][0]; @@ -530,7 +530,7 @@ function loadhost($dn) { // Will load all needed values from an existing account if ($attr['shadowExpire'][0]) { $date = getdate ($attr['shadowExpire'][0]*86400); $_SESSION['account']->unix_pwdexpire_day = $date['mday']; - $_SESSION['account']->unix_pwdexpire_mon = $date['month']; // *******************Fixme How to get a numbermonth? + $_SESSION['account']->unix_pwdexpire_mon = $date['mon']; $_SESSION['account']->unix_pwdexpire_yea = $date['year']; } if ($attr['pwdCanChange'][0]) $_SESSION['account']->smb_pwdcanchange = $attr['pwdCanChange'][0];