utility is used to speed up the distribution of very large NIS maps
from NIS master to NIS slave servers.
The normal method for transferring
maps involves several steps:
- The master server calls
to inform the slave servers to start a transfer.
- The slave servers invoke
which reads the entire contents of a map from the master server
using the yp_all() function.
program then creates a new map database file by using the
library hash method to store the data that it receives from the server.
- When all the data has been retrieved,
moves the new file into place and sends
on the local machine a YPPROC_CLEAR to tell it to refresh its
This process can take several minutes when there are very large
For example: a passwd database with several tens of
thousands of entries can consume several megabytes of disk space,
and it can take the
library package a long time to sort and store all the records
in a hash database.
Consider also that there are two sets of map
utility speeds up the transfer process by allowing NIS slave servers to
simply copy the master server's map files rather than building their
own from scratch.
implements an RPC-based file transfer protocol.
a multi-megabyte file in this fashion takes only a few seconds compared
to the several minutes it would take even a reasonably fast slave server
to build a new map from scratch.
utility uses the same access restriction mechanism as
This means that slave servers will only be permitted to transfer
files if the rules in the
database permit it (see
for more information on
Furthermore, only slave servers using reserved
ports will be allowed to transfer the