13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

▼How to Update Maps Supplied With the DefaultSetUse the following procedure for updating maps supplied with the default set.1. Become a superuser on the master server.Always modify <strong>NIS</strong> maps only on the master server.2. Edit the source file for the map you want to change, whether that file resides in/etc or in some other directory of your choice.3. Type the following.# cd /var/yp# make mapnameThe make comm<strong>and</strong> then updates your map according to the changes you made inits corresponding file. It also propagates the changes among the other servers.Propagating an <strong>NIS</strong> MapAfter a map is changed, the Makefile uses yppush to propagate a new map to theslave servers (unless NOPUSH is set in the Makefile). It does this by informing theypserv daemon <strong>and</strong> sending a map transfer request. The ypserv daemon on theslave then starts a ypxfr process, which in turn contacts the ypxfrd daemon on themaster server. Some basic checks are made (for example did the map really change?)<strong>and</strong> then the map is transferred. ypxfr on the slave then sends a response to theyppush process indicating whether the transfer succeeded.Note – The above procedure will not work for newly created maps that do not yet existon the slave servers. New maps must be sent to the slave servers by running ypxfron the slaves.Occasionally, maps fail to propagate <strong>and</strong> you must to use ypxfr manually to sendnew map information. You can choose to use ypxfr in two different ways:periodically through the root crontab file, or interactively on the comm<strong>and</strong> line.These approaches are discussed in the following sections.Using cron for Map TransfersMaps have different rates of change. For instance, some might not change for monthsat a time, such as protocols.byname among the default maps <strong>and</strong> auto_masteramong the nondefault maps; but passwd.byname can change several times a day.Scheduling map transfer using the crontab comm<strong>and</strong> allows you to set specificpropagation times for individual maps.104 System Administration Guide: <strong>Naming</strong> <strong>and</strong> <strong>Directory</strong> <strong>Services</strong> (<strong>DNS</strong>, <strong>NIS</strong>, <strong>and</strong> <strong>LDAP</strong>) • January 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!