![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The NIS package implements all functions described in the ypclnt(3N) manual page.
The following commands have been implemented:
$value
for the given $key
in the
$map
for the domain $domain. The $key
must be an
exact match for an item in the map (i.e.
yp_match does no partial matching. The $value
is only valid if
$status
is equal to $YP_SUCCESS.
$map
in $domain. As the
NIS maps are stored in a DBM table, the order of the returned values is not
obvious.
$map
in $domain. The
$key
must be provided from the previous yp_first or yp_next. The
yp_first/yp_next method is not recommended, as under some circumstances, entries can be
skipped or returned twice. yp_all is a better interface to use.
%values
associative array.
$status
variable returned by the above functions can have
one of the following values:
$Net::NIS::ERR_ACCESS Access violation $Net::NIS::ERR_BADARGS Args to function are bad $Net::NIS::ERR_BADDB yp data base is bad $Net::NIS::ERR_BUSY Database is busy $Net::NIS::ERR_DOMAIN Can't bind to a server which serves this domain $Net::NIS::ERR_KEY No such key in map $Net::NIS::ERR_MAP No such map in server's domain $Net::NIS::ERR_NODOM Local domain name not set $Net::NIS::ERR_PMAP Can't communicate with portmapper $Net::NIS::ERR_NOMORE No more records in map database $Net::NIS::ERR_RESRC Local resource allocation failure $Net::NIS::ERR_RPC RPC failure $Net::NIS::ERR_YPBIND Can't communicate with ypbind $Net::NIS::ERR_YPERR Internal yp server or client interface error $Net::NIS::ERR_YPSERV Can't communicate with ypserv $Net::NIS::ERR_VERS YP version mismatch
The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality of the two remains the same; only the name has changed. The name Yellow Pages is a registered trademark in the United Kingdom of British Telecommunications plc, and may not be used without permission.
$CommentsMailTo = "perl5@dcs.ed.ac.uk"; include("../syssies_footer.inc");?>