"Fossies" - the Fresh Open Source Software Archive 
Member "nss_ldap-265/tests/nsswitch.test" (6 Nov 2009, 1185 Bytes) of package /linux/privat/old/nss_ldap-265.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #ident $Id: nsswitch.test,v 1.2 2001/01/09 00:21:22 lukeh Exp $
2 #
3 # An example file that could be copied over to /etc/nsswitch.conf; it
4 # uses LDAP conjunction with files.
5 #
6 # "hosts:" and "services:" in this file are used only if the
7 # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
8
9 # the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
10 passwd: ldap
11 group: ldap
12
13 # consult DNS first, we will need it to resolve the LDAP host. (If we
14 # can't resolve it, we're in infinite recursion, because libldap calls
15 # gethostbyname(). Careful!)
16 hosts: files ldap
17
18 # LDAP is nominally authoritative for the following maps.
19 services: ldap
20 networks: ldap
21 protocols: ldap
22 rpc: ldap
23 ethers: ldap
24
25 # no support for netmasks, bootparams, publickey yet.
26 netmasks: files
27 bootparams: files
28 publickey: files
29 automount: files
30
31 # I'm pretty sure nsswitch.conf is consulted directly by sendmail,
32 # here, so we can't do much here. Instead, use bbense's LDAP
33 # rules ofr sendmail.
34 aliases: files
35 sendmailvars: files
36
37 # No one has written the LDAP support for netgroups yet, so we'll
38 # have to stick with NIS.
39 netgroup: files nis
40