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.

To use ypinit to build a fresh set of <strong>NIS</strong> maps on the master server, do the following.▼How to set up the master server using ypinit1. On the master server, become superuser or assume an equivalent role.Roles contain authorizations <strong>and</strong> privileged comm<strong>and</strong>s. For more informationabout roles, see “Using Role-Based Access Control (Tasks)” in System AdministrationGuide: Security <strong>Services</strong>.2. Copy the contents of the nsswitch.files file to the nsswitch.conf file.# cp /etc/nsswitch.files /etc/nsswitch.conf3. Edit the /etc/hosts or /etc/inet/ipnodes file to add the name <strong>and</strong> IPaddress of each of the <strong>NIS</strong> servers.4. Build new maps on the master server.# /usr/sbin/ypinit -m5. When ypinit prompts for a list of other machines to become <strong>NIS</strong> slave servers,type the name of the server you are working on, along with the names of your<strong>NIS</strong> slave servers.6. When ypinit asks whether you want the procedure to terminate at the firstnonfatal error or continue despite nonfatal errors, type y.When you choose y, ypinit exits upon encountering the first problem; you canthen fix it <strong>and</strong> restart ypinit. This is recommended if you are running ypinit forthe first time. If you prefer to continue, you can try to manually fix all problemsthat occur, <strong>and</strong> then restart ypinit.Note – A nonfatal error can appear when some of the map files are not present. Thisis not an error that affects the functionality of <strong>NIS</strong>. You might need to add mapsmanually if they were not created automatically. Refer to “Default <strong>NIS</strong> Maps”on page 72 for a description of all default <strong>NIS</strong> maps.7. ypinit asks whether the existing files in the /var/yp/domainname directory canbe destroyed.This message is displayed only if <strong>NIS</strong> has been previously installed.8. After ypinit has constructed the list of servers, it invokes make.This program uses the instructions contained in the Makefile (either the defaultone or the one you modified) located in /var/yp. The make comm<strong>and</strong> cleans anyremaining comment lines from the files you designated. It also runs makedbm onthe files, creating the appropriate maps <strong>and</strong> establishing the name of the masterserver for each map.86 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!