From d8d2df1be024c32c49f6407019063cb74747ba43 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 1 Feb 2009 18:57:56 +0000 Subject: [PATCH] added nisNetgroupTriple to file upload --- lam/lib/modules/nisnetgroup.inc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lam/lib/modules/nisnetgroup.inc b/lam/lib/modules/nisnetgroup.inc index 7207e9e6..04244837 100644 --- a/lam/lib/modules/nisnetgroup.inc +++ b/lam/lib/modules/nisnetgroup.inc @@ -75,6 +75,15 @@ class nisnetgroup extends baseModule { 'memberNisNetgroup' => array( "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.") + ), + '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 @@ -98,6 +107,12 @@ class nisnetgroup extends baseModule { 'description' => _('Subgroups'), 'help' => 'memberNisNetgroup', 'example' => _('group01,group02') + ), + array( + 'name' => 'nisnetgroup_members', + 'description' => _('Members'), + 'help' => 'membersUpload', + 'example' => _('(host1,user1,example.com);(host2,user2,example.com)') ) ); // available PDF fields @@ -484,6 +499,11 @@ class nisnetgroup extends baseModule { $partialAccounts[$i]['memberNisNetgroup'] = $groups; } } + // members + if ($rawAccounts[$i][$ids['nisnetgroup_members']] != "") { + $members = explode(';', $rawAccounts[$i][$ids['nisnetgroup_members']]); + $partialAccounts[$i]['nisNetgroupTriple'] = $members; + } } return $messages; }