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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting Up <strong>NIS</strong> ClientsThe two methods for configuring a client machine to use <strong>NIS</strong> as its naming service areexplained below.Note – The Solaris operating system does not support a configuration in which a <strong>NIS</strong>client <strong>and</strong> a Native <strong>LDAP</strong> client co-exist on the same client machine.■ypinit. The recommended method for configuring a client machine to use <strong>NIS</strong> isto login to the machine as root <strong>and</strong> run ypinit -c.# ypinit -c■You will be asked to name <strong>NIS</strong> servers from which the client obtains namingservice information. You can list as many master or slave servers as you want. Theservers that you list can be located anywhere in the domain. It is a better practice tofirst list the servers closest (in network terms) to the machine, than those that areon more distant parts of the net.Broadcast method. An older method of configuring a client machine to use <strong>NIS</strong> to login to the machine as root, set the domain name with the domainname comm<strong>and</strong>,then run ypbind.ypstart will automatically invoke the <strong>NIS</strong> client in broadcast mode (ypbind-broadcast), if the /var/yp/binding/‘domainname‘/ypservers file doesnot exist.# domainname doc.com# mv /var/yp/binding/‘domainname‘/ypservers /var/yp/binding/‘domainname‘\/ypservers.bak# ypstartWhen you run ypbind, it searches the local subnet for an <strong>NIS</strong> server. If it finds asubnet, ypbind binds to it. This search is referred to as broadcasting. If there is no<strong>NIS</strong> server on the client’s local subnet, ypbind fails to bind <strong>and</strong> the client machineis not able to obtain namespace data from the <strong>NIS</strong> service.Chapter 5 • Setting Up <strong>and</strong> Configuring <strong>NIS</strong> Service 91

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

Saved successfully!

Ooh no, something went wrong!