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.

EXAMPLE 2–4 <strong>LDAP</strong> Switch File Template(Continued)netgroup:automount:aliases:ldapfiles ldapfiles ldap# for efficient getservbyname() avoid ldapservices: files ldapsendmailvars: filesThe nsswitch.conf FileThe default nsswitch.conf file that is installed with the Solaris software isdetermined by which naming service you select during the installation process. Eachline identifies a particular type of network information, such as host, password, <strong>and</strong>group, along with the information source, such as <strong>NIS</strong>+ tables, <strong>NIS</strong> maps, the <strong>DNS</strong>hosts table, or local /etc. When you chose a naming service, the switch template filefor that service is copied to create the new nsswitch.conf file. For example, if youchoose <strong>NIS</strong>+, the nsswitch.nisplus file is copied to create a new nsswitch.conffile.An nsswitch.conf file is automatically loaded into every machine’s /etc directoryby the Solaris 9 release software, along with the following alternate (template)versions.■■■■/etc/nsswitch.nisplus/etc/nsswitch.nis/etc/nsswitch.files/etc/nsswitch.ldapThese alternate template files contain the default switch configurations used by the<strong>NIS</strong>+ <strong>and</strong> <strong>NIS</strong> services, local files, <strong>and</strong> <strong>LDAP</strong>. No default file is provided for <strong>DNS</strong>, butyou can edit any of these files to use <strong>DNS</strong>. When the Solaris software is first installedon a machine, the installer selects the machine’s default naming service. Duringinstallation, the corresponding template file is copied to /etc/nsswitch.conf. Forexample, for a machine client using <strong>NIS</strong>+, the installation process copiesnsswitch.nisplus to nsswitch.conf.If your network is connected to the Internet <strong>and</strong> users must access Internet hosts using<strong>DNS</strong>, you must enable <strong>DNS</strong> forwarding.Unless you have an unusual namespace, the default template file as copied tonsswitch.conf should be sufficient for normal operation.40 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!