xref: /illumos-gate/usr/src/cmd/netfiles/nsswitch.nis (revision 74e12c43fe52f2c30f36e65a4d0fb0e8dfd7068a)
17c478bd9Sstevel@tonic-gate# CDDL HEADER START
27c478bd9Sstevel@tonic-gate#
37c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
41bc9f3f5SMilan Jurik# Common Development and Distribution License (the "License").
51bc9f3f5SMilan Jurik# You may not use this file except in compliance with the License.
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
87c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
97c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
107c478bd9Sstevel@tonic-gate# and limitations under the License.
117c478bd9Sstevel@tonic-gate#
127c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
137c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
157c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
167c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
177c478bd9Sstevel@tonic-gate#
187c478bd9Sstevel@tonic-gate# CDDL HEADER END
197c478bd9Sstevel@tonic-gate#
201bc9f3f5SMilan Jurik# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gate
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate# /etc/nsswitch.nis:
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# An example file that could be copied over to /etc/nsswitch.conf; it
277c478bd9Sstevel@tonic-gate# uses NIS (YP) in conjunction with files.
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate# "hosts:" and "services:" in this file are used only if the
307c478bd9Sstevel@tonic-gate# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate# NIS service requires that svc:/network/nis/client:default be enabled
337c478bd9Sstevel@tonic-gate# and online.
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
367c478bd9Sstevel@tonic-gatepasswd:     files nis
377c478bd9Sstevel@tonic-gategroup:      files nis
387c478bd9Sstevel@tonic-gate
391bc9f3f5SMilan Jurikhosts:      files nis
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate# Note that IPv4 addresses are searched for in all of the ipnodes databases
427c478bd9Sstevel@tonic-gate# before searching the hosts databases.
431bc9f3f5SMilan Jurikipnodes:    files nis
447c478bd9Sstevel@tonic-gate
451bc9f3f5SMilan Juriknetworks:   files nis
461bc9f3f5SMilan Jurikprotocols:  files nis
471bc9f3f5SMilan Jurikrpc:        files nis
481bc9f3f5SMilan Jurikethers:     files nis
491bc9f3f5SMilan Juriknetmasks:   files nis
501bc9f3f5SMilan Jurikbootparams: files nis
511bc9f3f5SMilan Jurikpublickey:  files nis
527c478bd9Sstevel@tonic-gate
53*74e12c43SGordon Rossnetgroup:   files nis
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gateautomount:  files nis
567c478bd9Sstevel@tonic-gatealiases:    files nis
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gate# for efficient getservbyname() avoid nis
597c478bd9Sstevel@tonic-gateservices:   files nis
607c478bd9Sstevel@tonic-gateprinters:	user files nis
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateauth_attr:  files nis
637c478bd9Sstevel@tonic-gateprof_attr:  files nis
647c478bd9Sstevel@tonic-gateproject:    files nis
65