From 0a77a98c79d28e2a38545f22ba6f65c2a3867655 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 8 Jul 2007 10:21:34 +0000 Subject: [PATCH] set shadowLastChange for self service password changes --- lam/lib/modules/posixAccount.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 3dc35087..bb0b3ed4 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -1644,6 +1644,9 @@ class posixAccount extends baseModule { } else { $return['mod']['userPassword'][0] = pwd_hash($_POST['posixAccount_password'], true, $this->selfServiceSettings['posixAccount_pwdHash'][0]); + if (isset($attributes['shadowLastChange'])) { + $return['mod']['shadowLastChange'][0] = intval(time()/3600/24); + } $_SESSION['selfService_clientPasswordNew'] = $_POST['posixAccount_password']; } }