The /etc/nsswitch.conf is used to list the available databases along with a hierarchical order of locations to search. Below is an example:
passwd files ldapIn this structure, data for the passwd database can be located in either files or ldap.
NIS, however, cannot search for data in more than one location using nsswitch.conf. Therefore, in order to provide legacy NIS support, basic UNIX libraries support a compatibility or Compat mode to allow NIS to search in more than one location:
passwd compat passwd_compat files nis
In this structure, the Passwd database is in compatibility mode, and by using the (+/-) symbol in the passwd and shadow files, servces will search for data in files, then NIS. Based on the Solaris 9 Basic Library Reference, compat is provided for NIS only.
DO NOT USE Compat unless NIS is in use.
Other methods of access restriction are equally available and currently deployed in customer environments. Customers should develop an architecture that includes needed restriction capabilities followed by thorough testing, development and implementation of the technology that best meets their requirements.