NISTable(3pm) | User Contributed Perl Documentation | NISTable(3pm) |
Net::NIS::Table - Object Interface to Sun's Network Information Service
The NIS interface comes in two parts. The first part is the raw implementation of the NIS API, described in Net::NIS. The second is the object interface. This document describes the object interface implementation.
The Table object represents an individual NIS map. A NIS map is bound to a Table object with the new method:
$obj = Net::NIS::Table->new($map, [ $domain ]);
For example,
$hostsmap = Net::NIS::Table->new("hosts.byname");
This will create a Table object bound to the "hosts.byname" NIS map in the default NIS domain. All operations on the $hostsmap object will relate to the "hosts.byname" map.
You can also specify a non-default domain:
$hostsmap = Net::NIS::Table->new("hosts.byname", "my.domain.com.au");
Once a Table object has been bound to a NIS map, the following methods are available:
The status method described above can return 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
Copyright (c) 1995 Rik Harris (rik.harris@fulcrum.com.au). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
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.
2022-10-19 | perl v5.36.0 |