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.

TABLE 2–1 Switch File Information SourcesInformation SourcesfilesnisplusnisDescriptionA file stored in the client’s /etc directory. For example, /etc/passwdAn <strong>NIS</strong>+ table. For example, the hosts table.An <strong>NIS</strong> map. For example, the hosts map.compat compat can be used for password <strong>and</strong> group information to support old-style + or -syntax in /etc/passwd, /etc/shadow, <strong>and</strong> /etc/group files.dnsldapCan be used to specify that host information be obtained from <strong>DNS</strong>.Can be used to specify entries be obtained from the <strong>LDAP</strong> directory.Search CriteriaSingle Source. If an information type has only one source, such as nisplus a routineusing the switch searches for the information in that source only. If the routine findsthe information, the routine returns a success status message. If the routine does notfind the information, the routine stops searching <strong>and</strong> returns a different statusmessage. What the routine does with the status message varies from routine toroutine.Multiple Sources. If a table contains multiple sources for a given information type, theswitch directs the routine to search in the first listed source. If the routine finds theinformation, the routine returns a success status message. If the routine does notfind the information in the first source, the routine tries the next source. The routinesearches all sources until the routine has found the information, or until the routine ishalted by a return specification. If all of the listed sources are searched withoutfinding the information, the routine stops searching <strong>and</strong> returns a non-successstatus message.Switch Status MessagesIf a routine finds the information, the routine returns a success status message. If theroutine does not find the information, the routine returns one of three error statusmessages. Possible status messages are listed in the following table.TABLE 2–2 Switch Search Status MessagesStatus MessageSUCCESSMeaning of MessageThe requested entry was found in the specified source.Chapter 2 • The Name Service Switch (Overview) 33

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

Saved successfully!

Ooh no, something went wrong!