enable host passwords (RFE 1754069)

This commit is contained in:
Roland Gruber 2007-11-10 15:16:55 +00:00
parent 7379e0b301
commit a7d3bbd43c
2 changed files with 25 additions and 24 deletions

View File

@ -2,6 +2,7 @@
- allow to switch sorting in the account lists - allow to switch sorting in the account lists
- use suffix from account list as default for new accounts (patch 1823583) - use suffix from account list as default for new accounts (patch 1823583)
- Security: passwords in configuration files are now saved as hash values - Security: passwords in configuration files are now saved as hash values
- Unix: allow to set host passwords (RFE 1754069)
07.11.2007 2.1.0 07.11.2007 2.1.0

View File

@ -982,6 +982,13 @@ class posixAccount extends baseModule {
))), ))),
array('kind' => 'help', 'value' => 'createhomedir')); array('kind' => 'help', 'value' => 'createhomedir'));
} }
if (count($shelllist)!=0) {
$return[] = array(
array('kind' => 'text', 'text' => _('Login shell').'*'),
array('kind' => 'select', 'name' => 'loginShell', 'options' => $shelllist, 'options_selected' => array ($this->attributes['loginShell'][0])),
array('kind' => 'help', 'value' => 'loginShell'));
}
}
if (!isset($this->attributes['userPassword'][0])) { if (!isset($this->attributes['userPassword'][0])) {
$return[] = array( $return[] = array(
array('kind' => 'text', 'text' => _('Password') ), array('kind' => 'text', 'text' => _('Password') ),
@ -1006,13 +1013,6 @@ class posixAccount extends baseModule {
) )
))); )));
} }
if (count($shelllist)!=0) {
$return[] = array(
array('kind' => 'text', 'text' => _('Login shell').'*'),
array('kind' => 'select', 'name' => 'loginShell', 'options' => $shelllist, 'options_selected' => array ($this->attributes['loginShell'][0])),
array('kind' => 'help', 'value' => 'loginShell'));
}
}
return $return; return $return;
} }