readded support for user password in PDF
This commit is contained in:
parent
7096292dcd
commit
cc18b44e25
|
@ -49,6 +49,7 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
private $createhomedir;
|
private $createhomedir;
|
||||||
private $lamdaemonServer;
|
private $lamdaemonServer;
|
||||||
private $groupCache = null;
|
private $groupCache = null;
|
||||||
|
private $clearTextPassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function fills the error message array with messages.
|
* This function fills the error message array with messages.
|
||||||
|
@ -315,7 +316,8 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
'additionalGroups',
|
'additionalGroups',
|
||||||
'homeDirectory',
|
'homeDirectory',
|
||||||
'loginShell',
|
'loginShell',
|
||||||
'cn'
|
'cn',
|
||||||
|
'userPassword'
|
||||||
);
|
);
|
||||||
// help Entries
|
// help Entries
|
||||||
$return['help'] = array(
|
$return['help'] = array(
|
||||||
|
@ -1183,6 +1185,9 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
'posixAccount_homeDirectory' => array('<block><key>' . _('Home directory') . '</key><value>' . $this->attributes['homeDirectory'][0] . '</value></block>'),
|
'posixAccount_homeDirectory' => array('<block><key>' . _('Home directory') . '</key><value>' . $this->attributes['homeDirectory'][0] . '</value></block>'),
|
||||||
'posixAccount_loginShell' => array('<block><key>' . _('Login shell') . '</key><value>' . $this->attributes['loginShell'][0] . '</value></block>'),
|
'posixAccount_loginShell' => array('<block><key>' . _('Login shell') . '</key><value>' . $this->attributes['loginShell'][0] . '</value></block>'),
|
||||||
);
|
);
|
||||||
|
if (isset($this->clearTextPassword)) {
|
||||||
|
$return['posixAccount_userPassword'] = array('<block><key>' . _('Password') . '</key><value>' . $this->clearTextPassword . '</value></block>');
|
||||||
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1773,6 +1778,7 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
if (!in_array(get_class($this), $modules)) {
|
if (!in_array(get_class($this), $modules)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
$this->clearTextPassword = $password;
|
||||||
$this->attributes['userPassword'][0] = pwd_hash($password, true, $this->moduleSettings['posixAccount_pwdHash'][0]);
|
$this->attributes['userPassword'][0] = pwd_hash($password, true, $this->moduleSettings['posixAccount_pwdHash'][0]);
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue