fixed shadowLastChange

This commit is contained in:
Roland Gruber 2008-08-10 13:31:45 +00:00
parent 8adc828e2b
commit 71f32b6b5a
1 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,8 @@ class shadowAccount extends baseModule {
function save_attributes() {
$return = $this->getAccountContainer()->save_module_attributes($this->attributes, $this->orig);
// Set shadowLastchange manual.
if (isset($this->getAccountContainer()->getAccountModule('posixAccount')->clearTextPassword)) {
$clearPwd = $this->getAccountContainer()->getAccountModule('posixAccount')->getClearTextPassword();
if (isset($clearPwd)) {
$return[$this->getAccountContainer()->dn]['modify']['shadowLastChange'] = array(intval(time()/3600/24));
}
elseif ($this->getAccountContainer()->isNewAccount) {