|
NAMEListgroup.pm - Lists hosts/users in a netgroup group.SYNOPSISuse Listgroup; $array_ref_groups = listgroup(); $array_ref_groups = listgroups(); $array_ref_users_or_groups = listgroup({groupname}); $array_ref_users_or_groups = listgroup_user({groupname1}, [ [-]{groupname2}, [-]{gropuname3} ]); $array_ref_users_or_groups = listgroup_host({groupname1}, [ [-]{groupname2}, [-]{gropuname3} ]); DESCRIPTIONA library used to get groups or members of a netgroup NIS map. listgroup() without any parameters or listgroups() lists all the available netgroup groups.With groupname parameters listgroup, listgroup_user, listgroup_host will recusively list the members of the named groups. If the groupname is preceded with a - members of that group will be excluded from the returned list. Each member in a group is a triplet of (host,user,domain). The host portion or user portion of the members is returned by listgroup_host() and listgroup() , the user portion of the members is returned by listgroup_user(). REQUIRESNet::NISSEE ALSOnetgroup(4), listgroup(1), Net::NIS(3)AUTHOROriginal unknownMajor rewrite by Marc Prewitt <mprewitt@chelsea.net> Copyright (C) 2003 Chelsea Networks, under the GNU GPL. listgroup comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the COPYING file for details. listgroup is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. listgroup is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA PUBLIC METHODSlistgroups$array_ref_groups = listgroups(); Returns a reference to an array of groups from the netgroup nis map. listgroup_host, listgroup$array_ref_users_or_groups = listgroup({groupname1}, [ [-]{groupname2}, [-]{gropuname3} ]); $array_ref_users_or_groups = listgroup_host({groupname1}, [ [-]{groupname2}, [-]{gropuname3} ]); Returns a reference to an array of the host portion of the members of the provided groups. Members of groupnames preceded by a - will be excluded from the returned list. Groups are processed in the order they appear in the parameter list. If the NIS map 'netgroup' does not exist or another fatal NIS error occurs, die will be called. Wrap this call in an eval if you want to catch that type of error. listgroup_user$array_ref_users_or_groups = listgroup_user({groupname1}, [ [-]{groupname2}, [-]{gropuname3} ]); Returns a reference to an array of the user portion of the members of the provided groups. Members of groupnames preceded by a - will be excluded from the returned list. Groups are processed in the order they appear in the parameter list. If the NIS map 'netgroup' does not exist or another fatal NIS error occurs, die will be called. Wrap this call in an eval if you want to catch that type of error.
Visit the GSP FreeBSD Man Page Interface. |