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.

These four files are alternate default switch files. Each file is designed for a differentprimary naming service: /etc files, <strong>NIS</strong>, <strong>NIS</strong>+, or <strong>LDAP</strong>. When the Solaris software isfirst installed on a machine, the installer selects the machine’s default naming service:<strong>NIS</strong>+, <strong>NIS</strong>, local files, or <strong>LDAP</strong>. During installation, the corresponding template file iscopied to nsswitch.conf. For example, for a machine client using <strong>LDAP</strong>, theinstallation process copies nsswitch.ldap to nsswitch.conf. Unless you have anunusual namespace, the default template file as copied to nsswitch.conf should besufficient for normal operation.No default file is provided for <strong>DNS</strong>, but you can edit any of these files to use <strong>DNS</strong>. Formore information see “<strong>DNS</strong> <strong>and</strong> Internet Access” on page 42.If you later change a machine’s primary naming service, you copy the appropriatealternate switch file to nsswitch.conf. See “The nsswitch.conf Template Files”on page 36. You can also change the sources of particular types of networkinformation used by the client by editing the appropriate lines of the/etc/nsswitch.conf file. The syntax is described below, <strong>and</strong> additionalinstructions are provided in “How to Modify the Name Service Switch” on page 41.Format of the nsswitch.conf FileThe nsswitch.conf file is essentially a list of 16 types of information <strong>and</strong> thesources that getXXbyYY() routines search for that information. The 16 types ofinformation, not necessarily in this order, are the following.■■■■■■■■■■■■■■■■aliasesbootparamsethersgrouphostsipnodesnetgroupnetmasksnetworkspasswd, which includes shadow informationprotocolspublickeyrpcservicesautomountsendmailvarsThe following table provides a description of the kind of sources that can be listed inthe switch file for the information types above.32 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!