xref: /illumos-gate/usr/src/cmd/netfiles/nsswitch.nis (revision 8b80e8cb6855118d46f605e91b5ed4ce83417395)
1# CDDL HEADER START
2#
3# The contents of this file are subject to the terms of the
4# Common Development and Distribution License, Version 1.0 only
5# (the "License").  You may not use this file except in compliance
6# with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24# ident	"%Z%%M%	%I%	%E% SMI"
25
26#
27# /etc/nsswitch.nis:
28#
29# An example file that could be copied over to /etc/nsswitch.conf; it
30# uses NIS (YP) in conjunction with files.
31#
32# "hosts:" and "services:" in this file are used only if the
33# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
34
35# NIS service requires that svc:/network/nis/client:default be enabled
36# and online.
37
38# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
39passwd:     files nis
40group:      files nis
41
42# consult /etc "files" only if nis is down.
43hosts:      nis [NOTFOUND=return] files
44
45# Note that IPv4 addresses are searched for in all of the ipnodes databases
46# before searching the hosts databases.
47ipnodes:    nis [NOTFOUND=return] files
48
49networks:   nis [NOTFOUND=return] files
50protocols:  nis [NOTFOUND=return] files
51rpc:        nis [NOTFOUND=return] files
52ethers:     nis [NOTFOUND=return] files
53netmasks:   nis [NOTFOUND=return] files
54bootparams: nis [NOTFOUND=return] files
55publickey:  nis [NOTFOUND=return] files
56
57netgroup:   nis
58
59automount:  files nis
60aliases:    files nis
61
62# for efficient getservbyname() avoid nis
63services:   files nis
64printers:	user files nis
65
66auth_attr:  files nis
67prof_attr:  files nis
68project:    files nis
69