From cc18b44e252cd7d4d96abc65c222c1b1fbf9b415 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 8 Mar 2010 18:26:06 +0000 Subject: [PATCH] readded support for user password in PDF --- lam/lib/modules/posixAccount.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index f32dd2b4..5eb48eb3 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -49,6 +49,7 @@ class posixAccount extends baseModule implements passwordService { private $createhomedir; private $lamdaemonServer; private $groupCache = null; + private $clearTextPassword; /** * This function fills the error message array with messages. @@ -315,7 +316,8 @@ class posixAccount extends baseModule implements passwordService { 'additionalGroups', 'homeDirectory', 'loginShell', - 'cn' + 'cn', + 'userPassword' ); // help Entries $return['help'] = array( @@ -1183,6 +1185,9 @@ class posixAccount extends baseModule implements passwordService { 'posixAccount_homeDirectory' => array('' . _('Home directory') . '' . $this->attributes['homeDirectory'][0] . ''), 'posixAccount_loginShell' => array('' . _('Login shell') . '' . $this->attributes['loginShell'][0] . ''), ); + if (isset($this->clearTextPassword)) { + $return['posixAccount_userPassword'] = array('' . _('Password') . '' . $this->clearTextPassword . ''); + } return $return; } @@ -1773,6 +1778,7 @@ class posixAccount extends baseModule implements passwordService { if (!in_array(get_class($this), $modules)) { return array(); } + $this->clearTextPassword = $password; $this->attributes['userPassword'][0] = pwd_hash($password, true, $this->moduleSettings['posixAccount_pwdHash'][0]); return array(); }