| [751] | 1 | # | 
|---|
 | 2 | # /etc/nsswitch.conf | 
|---|
 | 3 | # | 
|---|
 | 4 | # An example Name Service Switch config file. This file should be | 
|---|
 | 5 | # sorted with the most-used services at the beginning. | 
|---|
 | 6 | # | 
|---|
 | 7 | # The entry '[NOTFOUND=return]' means that the search for an | 
|---|
 | 8 | # entry should stop if the search in the previous entry turned | 
|---|
 | 9 | # up nothing. Note that if the search failed due to some other reason | 
|---|
 | 10 | # (like no NIS server responding) then the search continues with the | 
|---|
 | 11 | # next entry. | 
|---|
 | 12 | # | 
|---|
 | 13 | # Legal entries are: | 
|---|
 | 14 | # | 
|---|
 | 15 | #       nisplus or nis+         Use NIS+ (NIS version 3) | 
|---|
 | 16 | #       nis or yp               Use NIS (NIS version 2), also called YP | 
|---|
 | 17 | #       dns                     Use DNS (Domain Name Service) | 
|---|
 | 18 | #       files                   Use the local files | 
|---|
 | 19 | #       db                      Use the local database (.db) files | 
|---|
 | 20 | #       compat                  Use NIS on compat mode | 
|---|
 | 21 | #       hesiod                  Use Hesiod for user lookups | 
|---|
 | 22 | #       [NOTFOUND=return]       Stop searching if not found so far | 
|---|
 | 23 | # | 
|---|
 | 24 |  | 
|---|
 | 25 | # To use db, put the "db" in front of "files" for entries you want to be | 
|---|
 | 26 | # looked up first in the databases | 
|---|
 | 27 | # | 
|---|
 | 28 | # Example: | 
|---|
 | 29 | #passwd:    db files nisplus nis | 
|---|
 | 30 | #shadow:    db files nisplus nis | 
|---|
 | 31 | #group:     db files nisplus nis | 
|---|
 | 32 |  | 
|---|
| [877] | 33 | # With nss_nonlocal: | 
|---|
| [751] | 34 | passwd:     files nonlocal | 
|---|
 | 35 | passwd_nonlocal: ldap | 
|---|
 | 36 | shadow:     files | 
|---|
 | 37 | group:      files nonlocal | 
|---|
 | 38 | group_nonlocal: ldap | 
|---|
 | 39 |  | 
|---|
| [877] | 40 | ## Without nss_nonlocal: | 
|---|
 | 41 | #passwd:          files ldap | 
|---|
 | 42 | #group:   files ldap | 
|---|
 | 43 | #shadow:     files | 
|---|
 | 44 | #passwd: files ldap | 
|---|
 | 45 | #group: files ldap | 
|---|
 | 46 |  | 
|---|
| [751] | 47 | #hosts:     db files nisplus nis dns | 
|---|
 | 48 | hosts:      files dns | 
|---|
| [877] | 49 | #hosts:      files mdns4_minimal [NOTFOUND=return] dns | 
|---|
| [751] | 50 |  | 
|---|
 | 51 | # Example - obey only what nisplus tells us... | 
|---|
 | 52 | #services:   nisplus [NOTFOUND=return] files | 
|---|
 | 53 | #networks:   nisplus [NOTFOUND=return] files | 
|---|
 | 54 | #protocols:  nisplus [NOTFOUND=return] files | 
|---|
 | 55 | #rpc:        nisplus [NOTFOUND=return] files | 
|---|
 | 56 | #ethers:     nisplus [NOTFOUND=return] files | 
|---|
 | 57 | #netmasks:   nisplus [NOTFOUND=return] files      | 
|---|
 | 58 |  | 
|---|
 | 59 | bootparams: nisplus [NOTFOUND=return] files | 
|---|
 | 60 |  | 
|---|
 | 61 | ethers:     files | 
|---|
 | 62 | netmasks:   files | 
|---|
 | 63 | networks:   files | 
|---|
 | 64 | protocols:  files | 
|---|
 | 65 | rpc:        files | 
|---|
 | 66 | services:   files | 
|---|
 | 67 |  | 
|---|
 | 68 | netgroup:   nisplus | 
|---|
 | 69 |  | 
|---|
 | 70 | publickey:  nisplus | 
|---|
 | 71 |  | 
|---|
 | 72 | automount:  files nisplus | 
|---|
 | 73 | aliases:    files nisplus | 
|---|
 | 74 |  | 
|---|