The innetgroup() function determines if a specific machine is a member of a netgroup.
result = innetgroup (netgroup, host [, user [, domain]])
|netgroup||Required. Name of the netgroup to query.|
|host||Required. The name of the machine in question.|
|user||Optional. The user name.|
|domain||Optional. The user name.|
|true||The specified machine is a member of the specified netgroup.|
|The specified machine is not a member of the specified netgroup.|
result = innetgroup ("myhosts", "machine1");
In this example, result contains an integer value of 1 (true) if machine1 is a member of the netgroup myhosts. result contains an integer value of 0 (false) if machine1 is not a member of the netgroup myhosts.
For more information, please see inusernetgroup.