set INFO.userPasswordStatusChange in personal module
This commit is contained in:
parent
a050000879
commit
a0dffd1f08
|
@ -7350,8 +7350,8 @@ OK (10 msec)</programlisting>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para><emphasis
|
<para><emphasis
|
||||||
role="bold">$INFO.userPasswordStatusChange$:</emphasis> provides
|
role="bold">$INFO.userPasswordStatusChange$:</emphasis> provides
|
||||||
additional information if the Unix password locking status was
|
additional information if the Personal/Unix password locking status
|
||||||
changed, possible values: locked, unlocked, unchanged</para>
|
was changed, possible values: locked, unlocked, unchanged</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
|
@ -977,6 +977,19 @@ class inetOrgPerson extends baseModule implements passwordService {
|
||||||
if ($this->clearTextPassword != null) {
|
if ($this->clearTextPassword != null) {
|
||||||
$return[$this->getAccountContainer()->dn_orig]['info']['userPasswordClearText'][0] = $this->clearTextPassword;
|
$return[$this->getAccountContainer()->dn_orig]['info']['userPasswordClearText'][0] = $this->clearTextPassword;
|
||||||
}
|
}
|
||||||
|
// password status change
|
||||||
|
if (!$this->isUnixActive()) {
|
||||||
|
if ((pwd_is_enabled($this->orig['userPassword'][0]) && pwd_is_enabled($this->attributes['userPassword'][0]))
|
||||||
|
|| (!pwd_is_enabled($this->orig['userPassword'][0]) && !pwd_is_enabled($this->attributes['userPassword'][0]))) {
|
||||||
|
$return[$this->getAccountContainer()->dn_orig]['info']['userPasswordStatusChange'][0] = 'unchanged';
|
||||||
|
}
|
||||||
|
elseif (pwd_is_enabled($this->orig['userPassword'][0])) {
|
||||||
|
$return[$this->getAccountContainer()->dn_orig]['info']['userPasswordStatusChange'][0] = 'locked';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$return[$this->getAccountContainer()->dn_orig]['info']['userPasswordStatusChange'][0] = 'unlocked';
|
||||||
|
}
|
||||||
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue