NAME

Net::NIS::Netgroup - Interface to glibc "getdomainname" function and its family

VERSION

Version 1.0

SYNOPSIS

use Net::NIS::Netgroup;

printf("Domain name is %s\n", getdomainname());
setdomainname("newdom.com");

printf("Is user in group? %d\n", innetgr('netgroup', 'host', 'user', 'domain'));

DESCRIPTION

Detailed information about the three supplied functions getgroupname, setdomainname, and innetgr can be found on the man pages of the respective glibc functions.

innetgr will happily take "undef" for one or more of its arguments, meaning the same as a NULL pointer in the C equivalent.

All three functions are exported per default.