added nisNetgroupTriple to file upload

This commit is contained in:
Roland Gruber 2009-02-01 18:57:56 +00:00
parent dd4811e49c
commit d8d2df1be0
1 changed files with 20 additions and 0 deletions

View File

@ -75,6 +75,15 @@ class nisnetgroup extends baseModule {
'memberNisNetgroup' => array( 'memberNisNetgroup' => array(
"Headline" => _("Subgroups"), "Headline" => _("Subgroups"),
"Text" => _("Here you can specify subgroups which are included in this NIS netgroup. All members of the subgroups will be treated as members of this group.") "Text" => _("Here you can specify subgroups which are included in this NIS netgroup. All members of the subgroups will be treated as members of this group.")
),
'members' => array(
"Headline" => _("Members"),
"Text" => _("These entries specify the members of the netgroup. You can limit the set to a host name, a user name or any combination of them.")
),
'membersUpload' => array(
"Headline" => _("Members"),
"Text" => _("These entries specify the members of the netgroup. You can limit the set to a host name, a user name or any combination of them.") . ' ' .
_("For the upload please specify the entries in the format \"(HOST,USER,DOMAIN)\". Multiple entries are separated by semicolon.")
) )
); );
// upload fields // upload fields
@ -98,6 +107,12 @@ class nisnetgroup extends baseModule {
'description' => _('Subgroups'), 'description' => _('Subgroups'),
'help' => 'memberNisNetgroup', 'help' => 'memberNisNetgroup',
'example' => _('group01,group02') 'example' => _('group01,group02')
),
array(
'name' => 'nisnetgroup_members',
'description' => _('Members'),
'help' => 'membersUpload',
'example' => _('(host1,user1,example.com);(host2,user2,example.com)')
) )
); );
// available PDF fields // available PDF fields
@ -484,6 +499,11 @@ class nisnetgroup extends baseModule {
$partialAccounts[$i]['memberNisNetgroup'] = $groups; $partialAccounts[$i]['memberNisNetgroup'] = $groups;
} }
} }
// members
if ($rawAccounts[$i][$ids['nisnetgroup_members']] != "") {
$members = explode(';', $rawAccounts[$i][$ids['nisnetgroup_members']]);
$partialAccounts[$i]['nisNetgroupTriple'] = $members;
}
} }
return $messages; return $messages;
} }