"Fossies" - the Fresh Open Source Software Archive 
Member "nss_ldap-265/nsswitch.ldap" (6 Nov 2009, 1300 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.ldap,v 2.4 2003/10/02 02:36:25 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: files ldap
11 group: files 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: dns ldap
17
18 # LDAP is nominally authoritative for the following maps.
19 services: ldap [NOTFOUND=return] files
20 networks: ldap [NOTFOUND=return] files
21 protocols: ldap [NOTFOUND=return] files
22 rpc: ldap [NOTFOUND=return] files
23 ethers: ldap [NOTFOUND=return] files
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 # Note: there is no support for netgroups on Solaris (yet)
38 netgroup: ldap [NOTFOUND=return] files
39