fixed bug when no_password option is used
This commit is contained in:
parent
f91528eff2
commit
b81622783a
|
@ -744,9 +744,8 @@ class posixGroup extends baseModule {
|
||||||
unset($return[$_SESSION[$this->base]->dn]['notchanged']['userPassword']);
|
unset($return[$_SESSION[$this->base]->dn]['notchanged']['userPassword']);
|
||||||
// Set unix password
|
// Set unix password
|
||||||
if (isset($this->orig['userPassword'][0])) {
|
if (isset($this->orig['userPassword'][0])) {
|
||||||
// use no password
|
// use no password, do nothing
|
||||||
if ($this->userPassword_nopassword)
|
if ($this->userPassword_nopassword) {}
|
||||||
$return[$_SESSION[$this->base]->dn]['modify']['userPassword'][0] = pwd_hash('', !$this->userPassword_lock, $this->moduleSettings['posixGroup_pwdHash'][0]);
|
|
||||||
// invalid, use '*' as password
|
// invalid, use '*' as password
|
||||||
elseif ($this->userPassword_invalid)
|
elseif ($this->userPassword_invalid)
|
||||||
$return[$_SESSION[$this->base]->dn]['modify']['userPassword'][0] = '*';
|
$return[$_SESSION[$this->base]->dn]['modify']['userPassword'][0] = '*';
|
||||||
|
|
Loading…
Reference in New Issue