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.

Selecting a Different Configuration FileWhen you change a machine’s naming service, you need to modify that machine’sswitch file accordingly. For example, if you change a machine’s naming service from<strong>NIS</strong> to <strong>NIS</strong>+, you need to install a switch file appropriate for <strong>NIS</strong>+. You change switchfiles by copying the appropriate template file to nsswitch.conf.If you are installing <strong>NIS</strong>+ on a machine using the <strong>NIS</strong>+ installation scripts, the <strong>NIS</strong>+template script is copied to nsswitch.conf for you. In this case, you do not have toconfigure the switch file unless you want to customize.Before proceeding to change switch files, make sure the sources listed in the file areproperly set up. In other words, if you are going to select the <strong>NIS</strong>+ version, the clientmust eventually have access to <strong>NIS</strong>+ service. If you select the local files version, thosefiles must be properly set up on the client.▼How to Modify the Name Service SwitchTo change to a switch file, follow these steps.Note – In order to use <strong>LDAP</strong> naming services, you must also properly configure all<strong>LDAP</strong> client machines, in addition to modifying the nsswitch.conf. See Chapter 12for more information.1. 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 appropriate alternate file for the machine’s naming service over thensswitch.conf file.<strong>NIS</strong>+ Version (done automatically for you by <strong>NIS</strong>+ scripts)client1# cd /etcclient1# cp nsswitch.nisplus nsswitch.conf<strong>NIS</strong> Versionclient1# cd /etcclient1# cp nsswitch.nis nsswitch.confLocal /etc Files Versionclient1# cd /etcclient1# cp nsswitch.files nsswitch.confChapter 2 • The Name Service Switch (Overview) 41

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

Saved successfully!

Ooh no, something went wrong!