JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information


Part I About Naming and Directory Services

1.  Naming and Directory Services (Overview)

2.  The Name Service Switch (Overview)

About the Name Service Switch

Format of the nsswitch.conf File

Search Criteria

Switch Status Messages

Switch Action Options

Default Search Criteria

What if the Syntax is Wrong?

Auto_home and Auto_master

Timezone and the Switch File

Comments in nsswitch.conf Files

Keyserver and publickey Entry in the Switch File

The nsswitch.conf Template Files

The Default Switch Template Files

The nsswitch.conf File

Selecting a Different Configuration File

How to Modify the Name Service Switch

DNS and Internet Access

IPv6 and Oracle Solaris Naming Services

Ensuring Compatibility With +/- Syntax

The Switch File and Password Information

Part II DNS Setup and Administration

3.  DNS Setup and Administration (Reference)

Part III NIS Setup and Administration

4.  Network Information Service (NIS) (Overview)

5.  Setting Up and Configuring NIS Service

6.  Administering NIS (Tasks)

7.  NIS Troubleshooting

Part IV LDAP Naming Services Setup and Administration

8.  Introduction to LDAP Naming Services (Overview/Reference)

9.  LDAP Basic Components and Concepts (Overview)

10.  Planning Requirements for LDAP Naming Services (Tasks)

11.  Setting Up Sun Java System Directory Server With LDAP Clients (Tasks)

12.  Setting Up LDAP Clients (Tasks)

13.  LDAP Troubleshooting (Reference)

14.  LDAP General Reference (Reference)

15.  Transitioning From NIS to LDAP (Overview/Tasks)

Part V Active Directory Naming Service

16.  Setting Up Oracle Solaris Active Directory Clients



The Switch File and Password Information

It is possible to include and access password information in multiple repositories, such as files and nis. You can use the nsswitch.conf file to establish the lookup order for that information.


Caution - files must be the first source in the nsswitch.conf file for passwd information.

In an NIS environment, the passwd line of the nsswitch.conf file should list the repositories in the following order.

passwd: files nis

Tip - Listing files first allows root to log in, under most circumstances, even when the system encounters some network or naming services issues.

Maintaining multiple repositories for the same user is not recommended. By maintaining centralized password management in a single repository for each user, you reduce the possibilities of confusion and error. If you choose to maintain multiple repositories per user, update password information by using the passwd -r command.

passwd -r repository

If no repository is specified with the -r option, passwd updates the repositories listed in nsswitch.conf in reverse order.