small fix for config options

This commit is contained in:
Roland Gruber 2004-11-14 13:50:57 +00:00
parent 27f2d50e1d
commit 2f0dee28ca
1 changed files with 43 additions and 45 deletions

View File

@ -230,32 +230,30 @@ class posixGroup extends baseModule {
$return['dependencies'] = array('depends' => array(), 'conflicts' => array('inetOrgPerson', 'account', 'sambaDomain')); $return['dependencies'] = array('depends' => array(), 'conflicts' => array('inetOrgPerson', 'account', 'sambaDomain'));
// configuration options // configuration options
$return['config_options']['group'] = array( $return['config_options']['group'] = array(
array( array(
0 => array('kind' => 'text', 'text' => '<b>' . _('Minimum GID number') . " *: </b>"), 0 => array('kind' => 'text', 'text' => '<b>' . _('Minimum GID number') . " *: </b>"),
1 => array('kind' => 'input', 'name' => 'posixGroup_minGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'), 1 => array('kind' => 'input', 'name' => 'posixGroup_minGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
2 => array('kind' => 'text', 'value' => '&nbsp;'), 2 => array('kind' => 'text', 'value' => '&nbsp;'),
3 => array('kind' => 'text', 'text' => '<b>' . _('Maximum GID number') . " *: </b>"), 3 => array('kind' => 'text', 'text' => '<b>' . _('Maximum GID number') . " *: </b>"),
4 => array('kind' => 'input', 'name' => 'posixGroup_maxGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'), 4 => array('kind' => 'input', 'name' => 'posixGroup_maxGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
5 => array('kind' => 'help', 'value' => 'minMaxGID')) 5 => array('kind' => 'help', 'value' => 'minMaxGID')),
); array(
$return['config_options']['all'] = array( 0 => array('kind' => 'text', 'text' => '<b>' . _("Password hash type") . ': &nbsp;</b>'),
array( 1 => array('kind' => 'select', 'name' => 'posixGroup_pwdHash', 'size' => '1',
0 => array('kind' => 'text', 'text' => '<b>' . _("Password hash type") . ': &nbsp;</b>'), 'options' => array("CRYPT", "SHA", "SSHA", "MD5", "SMD5", "PLAIN"), 'options_selected' => array('SSHA')),
1 => array('kind' => 'select', 'name' => 'posixGroup_pwdHash', 'size' => '1', 2 => array('kind' => 'text', 'value' => '&nbsp;'),
'options' => array("CRYPT", "SHA", "SSHA", "MD5", "SMD5", "PLAIN"), 'options_selected' => array('SSHA')), 3 => array('kind' => 'text', 'value' => '&nbsp;'),
2 => array('kind' => 'text', 'value' => '&nbsp;'), 4 => array('kind' => 'text', 'value' => '&nbsp;'),
3 => array('kind' => 'text', 'value' => '&nbsp;'), 5 => array('kind' => 'help', 'value' => 'pwdHash'))
4 => array('kind' => 'text', 'value' => '&nbsp;'),
5 => array('kind' => 'help', 'value' => 'pwdHash'))
); );
// configuration descriptions // configuration descriptions
$return['config_descriptions'] = array( $return['config_descriptions'] = array(
'legend' => _("GID ranges for Unix groups"), 'legend' => _("GID ranges for Unix groups"),
'descriptions' => array( 'descriptions' => array(
'posixGroup_minGID' => _("Minimum GID number for Unix groups"), 'posixGroup_minGID' => _("Minimum GID number for Unix groups"),
'posixGroup_maxGID' => _("Maximum GID number for Unix groups"), 'posixGroup_maxGID' => _("Maximum GID number for Unix groups"),
'posixGroup_pwdHash' => _("Password hash type for Unix groups"), 'posixGroup_pwdHash' => _("Password hash type for Unix groups"),
) )
); );
// configuration checks // configuration checks
$return['config_checks']['group']['posixGroup_minGID'] = array ( $return['config_checks']['group']['posixGroup_minGID'] = array (
@ -285,36 +283,36 @@ class posixGroup extends baseModule {
// upload fields // upload fields
$return['upload_columns'] = array( $return['upload_columns'] = array(
array( array(
'name' => 'posixGroup_cn', 'name' => 'posixGroup_cn',
'description' => _('Group name'), 'description' => _('Group name'),
'help' => 'cn', 'help' => 'cn',
'example' => _('adminstrators'), 'example' => _('adminstrators'),
'required' => true, 'required' => true,
'unique' => true 'unique' => true
), ),
array( array(
'name' => 'posixGroup_gid', 'name' => 'posixGroup_gid',
'description' => _('GID number'), 'description' => _('GID number'),
'help' => 'gidNumber', 'help' => 'gidNumber',
'example' => '2034' 'example' => '2034'
), ),
array( array(
'name' => 'posixGroup_description', 'name' => 'posixGroup_description',
'description' => _('Group description'), 'description' => _('Group description'),
'help' => 'description', 'help' => 'description',
'example' => _('Administrators group') 'example' => _('Administrators group')
), ),
array( array(
'name' => 'posixGroup_members', 'name' => 'posixGroup_members',
'description' => _('Group members'), 'description' => _('Group members'),
'help' => 'upload_members', 'help' => 'upload_members',
'example' => _('user01,user02,user03') 'example' => _('user01,user02,user03')
), ),
array( array(
'name' => 'posixGroup_password', 'name' => 'posixGroup_password',
'description' => _('Group password'), 'description' => _('Group password'),
'help' => 'password', 'help' => 'password',
'example' => _('secret') 'example' => _('secret')
) )
); );
// help Entries // help Entries