2020-09-07 13:44:54 +00:00
|
|
|
.\" $NetBSD: nsswitch.conf.5,v 1.14 1999/03/17 20:19:47 garbled Exp $
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.\"
|
2005-02-09 18:07:17 +00:00
|
|
|
.\" Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
2001-07-14 19:41:16 +00:00
|
|
|
.\"
|
2005-02-09 18:07:17 +00:00
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Luke Mewburn.
|
2001-07-14 19:41:16 +00:00
|
|
|
.\"
|
2005-02-09 18:07:17 +00:00
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
2020-09-07 13:44:54 +00:00
|
|
|
.\" This product includes software developed by Luke Mewburn.
|
2005-02-09 18:07:17 +00:00
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
2001-07-14 19:41:16 +00:00
|
|
|
.\"
|
2005-02-09 18:07:17 +00:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
.\" OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
|
|
|
.\" TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
|
|
|
.\" USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.\"
|
2020-09-06 20:32:13 +00:00
|
|
|
.Dd September 6, 2020
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Dt NSSWITCH.CONF 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm nsswitch.conf
|
|
|
|
.Nd name-service switch configuration file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file specifies how the
|
|
|
|
.Xr nsdispatch 3
|
|
|
|
(name-service switch dispatcher) routines in the C library should operate.
|
|
|
|
.Pp
|
|
|
|
The configuration file controls how a process looks up various databases
|
|
|
|
containing information regarding hosts, users (passwords), groups, etc.
|
2020-09-07 13:44:54 +00:00
|
|
|
Each database comes from a source (such as local files, DNS, NIS ,
|
2006-05-20 03:29:09 +00:00
|
|
|
and cache), and the order to look up the sources is specified in
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm .
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Pp
|
2001-07-14 19:41:16 +00:00
|
|
|
Each entry in
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Nm
|
|
|
|
consists of a database name, and a space separated list of sources.
|
|
|
|
Each source can have an optional trailing criterion that determines
|
|
|
|
whether the next listed source is used, or the search terminates at
|
|
|
|
the current source.
|
|
|
|
Each criterion consists of one or more status codes, and actions to
|
|
|
|
take if that status code occurs.
|
|
|
|
.Ss Sources
|
2018-11-11 00:57:13 +00:00
|
|
|
The following sources are implemented as part of the base system:
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width Source -compact
|
|
|
|
.It Sy Source
|
|
|
|
.Sy Description
|
|
|
|
.It files
|
|
|
|
Local files, such as
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Pa /etc/hosts ,
|
|
|
|
and
|
|
|
|
.Pa /etc/passwd .
|
2010-04-04 08:31:03 +00:00
|
|
|
.It db
|
|
|
|
Local database.
|
2001-02-01 16:38:02 +00:00
|
|
|
.It dns
|
|
|
|
Internet Domain Name System.
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Dq hosts
|
|
|
|
and
|
|
|
|
.Sq networks
|
|
|
|
use
|
|
|
|
.Sy IN
|
|
|
|
class entries, all other databases use
|
|
|
|
.Sy HS
|
|
|
|
class (Hesiod) entries.
|
2001-02-01 16:38:02 +00:00
|
|
|
.It nis
|
|
|
|
NIS (formerly YP)
|
|
|
|
.It compat
|
|
|
|
support
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Sq +/-
|
|
|
|
in the
|
|
|
|
.Dq passwd
|
|
|
|
and
|
|
|
|
.Dq group
|
|
|
|
databases.
|
|
|
|
If this is present, it must be the only source for that entry.
|
2006-05-20 03:29:09 +00:00
|
|
|
.It cache
|
|
|
|
makes use of the
|
2007-10-19 00:16:29 +00:00
|
|
|
.Xr nscd 8
|
2006-05-20 03:29:09 +00:00
|
|
|
daemon.
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.El
|
2018-11-11 00:57:13 +00:00
|
|
|
.Pp
|
|
|
|
Additional sources might be provided by third party software.
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Ss Databases
|
|
|
|
The following databases are used by the following C library functions:
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width networks -compact
|
|
|
|
.It Sy Database
|
|
|
|
.Sy "Used by"
|
|
|
|
.It group
|
2007-01-22 11:45:25 +00:00
|
|
|
.Xr getgrent 3 ,
|
|
|
|
.Xr getgrent_r 3 ,
|
|
|
|
.Xr getgrgid_r 3 ,
|
|
|
|
.Xr getgrnam_r 3 ,
|
|
|
|
.Xr setgrent 3 ,
|
|
|
|
.Xr endgrent 3
|
2001-02-01 16:38:02 +00:00
|
|
|
.It hosts
|
2007-01-22 11:45:25 +00:00
|
|
|
.Xr getaddrinfo 3 ,
|
|
|
|
.Xr gethostbyaddr 3 ,
|
|
|
|
.Xr gethostbyaddr_r 3 ,
|
|
|
|
.Xr gethostbyname 3 ,
|
|
|
|
.Xr gethostbyname2 3 ,
|
|
|
|
.Xr gethostbyname_r 3 ,
|
|
|
|
.Xr getipnodebyaddr 3 ,
|
|
|
|
.Xr getipnodebyname 3
|
2001-02-01 16:38:02 +00:00
|
|
|
.It networks
|
2007-01-22 11:45:25 +00:00
|
|
|
.Xr getnetbyaddr 3 ,
|
|
|
|
.Xr getnetbyaddr_r 3 ,
|
|
|
|
.Xr getnetbyname 3 ,
|
|
|
|
.Xr getnetbyname_r 3
|
2001-02-01 16:38:02 +00:00
|
|
|
.It passwd
|
2007-01-22 11:45:25 +00:00
|
|
|
.Xr getpwent 3 ,
|
|
|
|
.Xr getpwent_r 3 ,
|
|
|
|
.Xr getpwnam_r 3 ,
|
|
|
|
.Xr getpwuid_r 3 ,
|
|
|
|
.Xr setpwent 3 ,
|
|
|
|
.Xr endpwent 3
|
2001-02-01 16:38:02 +00:00
|
|
|
.It shells
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Xr getusershell 3
|
2006-05-20 03:29:09 +00:00
|
|
|
.It services
|
|
|
|
.Xr getservent 3
|
|
|
|
.It rpc
|
2007-01-22 11:45:25 +00:00
|
|
|
.Xr getrpcbyname 3 ,
|
|
|
|
.Xr getrpcbynumber 3 ,
|
2006-05-20 03:29:09 +00:00
|
|
|
.Xr getrpcent 3
|
|
|
|
.It proto
|
2008-12-23 18:00:33 +00:00
|
|
|
.Xr getprotobyname 3 ,
|
2007-01-22 11:45:25 +00:00
|
|
|
.Xr getprotobynumber 3 ,
|
|
|
|
.Xr getprotoent 3
|
2008-12-23 18:00:33 +00:00
|
|
|
.It netgroup
|
|
|
|
.Xr getnetgrent 3 ,
|
2016-06-09 01:28:44 +00:00
|
|
|
.Xr getnetgrent_r 3 ,
|
2008-12-23 18:00:33 +00:00
|
|
|
.Xr setnetgrent 3 ,
|
2016-06-09 01:28:44 +00:00
|
|
|
.Xr endnetgrent 3 ,
|
2008-12-23 18:00:33 +00:00
|
|
|
.Xr innetgr 3
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.El
|
|
|
|
.Ss Status codes
|
|
|
|
The following status codes are available:
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width tryagain -compact
|
|
|
|
.It Sy Status
|
|
|
|
.Sy Description
|
|
|
|
.It success
|
|
|
|
The requested entry was found.
|
|
|
|
.It notfound
|
|
|
|
The entry is not present at this source.
|
|
|
|
.It tryagain
|
|
|
|
The source is busy, and may respond to retries.
|
|
|
|
.It unavail
|
|
|
|
The source is not responding, or entry is corrupt.
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.El
|
|
|
|
.Ss Actions
|
|
|
|
For each of the status codes, one of two actions is possible:
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width continue -compact
|
|
|
|
.It Sy Action
|
|
|
|
.Sy Description
|
|
|
|
.It continue
|
|
|
|
Try the next source
|
|
|
|
.It return
|
|
|
|
Return with the current result
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.El
|
|
|
|
.Ss Format of file
|
2020-09-07 13:44:54 +00:00
|
|
|
A BNF description of the syntax of
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Nm
|
|
|
|
is:
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width <criterion> -compact
|
|
|
|
.It <entry>
|
|
|
|
::=
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
<database> ":" [<source> [<criteria>]]*
|
2001-02-01 16:38:02 +00:00
|
|
|
.It <criteria>
|
|
|
|
::=
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
"[" <criterion>+ "]"
|
2001-02-01 16:38:02 +00:00
|
|
|
.It <criterion>
|
|
|
|
::=
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
<status> "=" <action>
|
2001-02-01 16:38:02 +00:00
|
|
|
.It <status>
|
|
|
|
::=
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
"success" | "notfound" | "unavail" | "tryagain"
|
2001-02-01 16:38:02 +00:00
|
|
|
.It <action>
|
|
|
|
::=
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
"return" | "continue"
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Each entry starts on a new line in the file.
|
|
|
|
A
|
|
|
|
.Sq #
|
|
|
|
delimits a comment to end of line.
|
|
|
|
Blank lines are ignored.
|
|
|
|
A
|
|
|
|
.Sq \e
|
|
|
|
at the end of a line escapes the newline, and causes the next line to
|
|
|
|
be a continuation of the current line.
|
|
|
|
All entries are case-insensitive.
|
|
|
|
.Pp
|
|
|
|
The default criteria is to return on
|
|
|
|
.Dq success ,
|
|
|
|
and continue on anything else (i.e,
|
2001-08-10 17:35:21 +00:00
|
|
|
.Li "[success=return notfound=continue unavail=continue tryagain=continue]" ) .
|
2006-05-20 03:29:09 +00:00
|
|
|
.Ss Cache
|
|
|
|
You can enable caching for the particular database by specifying
|
|
|
|
.Dq cache
|
2020-09-06 20:32:13 +00:00
|
|
|
in the
|
2016-06-09 06:55:00 +00:00
|
|
|
.Nm
|
2006-05-20 03:29:09 +00:00
|
|
|
file.
|
2020-09-06 20:32:13 +00:00
|
|
|
It should come after
|
|
|
|
.Dq files ,
|
|
|
|
but before remote sources like
|
|
|
|
.Dq nis .
|
2006-05-20 03:29:09 +00:00
|
|
|
You should also enable caching for this database in
|
2007-10-19 00:16:29 +00:00
|
|
|
.Xr nscd.conf 5 .
|
2020-09-06 20:32:13 +00:00
|
|
|
If for a particular query
|
2006-05-20 03:29:09 +00:00
|
|
|
.Dq cache
|
2020-09-06 20:32:13 +00:00
|
|
|
source returns success, then no further sources are queried.
|
2006-05-20 03:29:09 +00:00
|
|
|
On the other hand, if there are no previously cached data, the
|
|
|
|
query result will be placed into the cache right after
|
|
|
|
all other sources are processed.
|
2020-09-06 20:32:13 +00:00
|
|
|
Note that
|
2006-05-20 03:29:09 +00:00
|
|
|
.Dq cache
|
2020-09-06 20:32:13 +00:00
|
|
|
requires the
|
2007-10-19 00:16:29 +00:00
|
|
|
.Xr nscd 8
|
2006-05-20 03:29:09 +00:00
|
|
|
daemon to be running.
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Ss Compat mode: +/- syntax
|
|
|
|
In historical multi-source implementations, the
|
|
|
|
.Sq +
|
|
|
|
and
|
|
|
|
.Sq -
|
|
|
|
characters are used to specify the importing of user password and
|
2020-09-07 13:44:54 +00:00
|
|
|
group information from NIS .
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
Although
|
|
|
|
.Nm
|
2020-09-07 13:44:54 +00:00
|
|
|
provides alternative methods of accessing distributed sources such as NIS ,
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
specifying a sole source of
|
|
|
|
.Dq compat
|
|
|
|
will provide the historical behaviour.
|
|
|
|
.Pp
|
|
|
|
An alternative source for the information accessed via
|
|
|
|
.Sq +/-
|
|
|
|
can be used by specifying
|
|
|
|
.Dq passwd_compat: source .
|
|
|
|
.Dq source
|
|
|
|
in this case can be
|
|
|
|
.Sq dns ,
|
|
|
|
.Sq nis ,
|
|
|
|
or
|
|
|
|
any other source except for
|
|
|
|
.Sq files
|
|
|
|
and
|
|
|
|
.Sq compat .
|
|
|
|
.Ss Notes
|
|
|
|
Historically, many of the databases had enumeration functions, often of
|
|
|
|
the form
|
|
|
|
.Fn getXXXent .
|
2005-02-13 22:25:33 +00:00
|
|
|
These made sense when the databases were in local files, but do not make
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
sense or have lesser relevance when there are possibly multiple sources,
|
|
|
|
each of an unknown size.
|
|
|
|
The interfaces are still provided for compatibility, but the source
|
|
|
|
may not be able to provide complete entries, or duplicate entries may
|
|
|
|
be retrieved if multiple sources that contain similar information are
|
|
|
|
specified.
|
|
|
|
.Pp
|
|
|
|
To ensure compatibility with previous and current implementations, the
|
|
|
|
.Dq compat
|
|
|
|
source must appear alone for a given database.
|
|
|
|
.Ss Default source lists
|
|
|
|
If, for any reason,
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm
|
2005-02-13 22:25:33 +00:00
|
|
|
does not exist, or it has missing or corrupt entries,
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Xr nsdispatch 3
|
|
|
|
will default to an entry of
|
|
|
|
.Dq files
|
|
|
|
for the requested database.
|
|
|
|
Exceptions are:
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pp
|
2006-05-20 03:29:09 +00:00
|
|
|
.Bl -tag -width services_compat -compact
|
2001-02-01 16:38:02 +00:00
|
|
|
.It Sy Database
|
|
|
|
.Sy "Default source list"
|
|
|
|
.It group
|
|
|
|
compat
|
|
|
|
.It group_compat
|
|
|
|
nis
|
|
|
|
.It hosts
|
2004-06-21 19:35:36 +00:00
|
|
|
files dns
|
2001-02-01 16:38:02 +00:00
|
|
|
.It passwd
|
|
|
|
compat
|
|
|
|
.It passwd_compat
|
|
|
|
nis
|
2006-05-20 03:29:09 +00:00
|
|
|
.It services
|
|
|
|
compat
|
|
|
|
.It services_compat
|
|
|
|
nis
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/nsswitch.conf -compact
|
|
|
|
.It Pa /etc/nsswitch.conf
|
|
|
|
The file
|
|
|
|
.Nm
|
|
|
|
resides in
|
|
|
|
.Pa /etc .
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
2020-09-06 20:32:13 +00:00
|
|
|
To lookup hosts in
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Pa /etc/hosts
|
2020-09-06 20:32:13 +00:00
|
|
|
, then in cache,
|
2020-09-07 13:44:54 +00:00
|
|
|
and then from the DNS, and lookup user information from NIS then files, use:
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width passwd: -compact
|
|
|
|
.It hosts:
|
2020-09-06 20:32:13 +00:00
|
|
|
files cache dns
|
2001-02-01 16:38:02 +00:00
|
|
|
.It passwd:
|
|
|
|
nis [notfound=return] files
|
|
|
|
.It group:
|
|
|
|
nis [notfound=return] files
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The criteria
|
|
|
|
.Dq [notfound=return]
|
2005-02-13 22:25:33 +00:00
|
|
|
sets a policy of "if the user is notfound in nis, do not try files."
|
2002-03-16 18:00:44 +00:00
|
|
|
This treats nis as the authoritative source of information, except
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
when the server is down.
|
2005-04-24 20:24:59 +00:00
|
|
|
.Sh NOTES
|
2018-11-10 23:07:46 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file is parsed by each program only once.
|
|
|
|
Subsequent changes will not be applied until the program
|
|
|
|
is restarted.
|
|
|
|
.Pp
|
2005-04-24 20:24:59 +00:00
|
|
|
If system got compiled with
|
2006-03-17 18:54:44 +00:00
|
|
|
.Va WITHOUT_NIS
|
2005-04-24 20:24:59 +00:00
|
|
|
you have to remove
|
|
|
|
.Sq nis
|
|
|
|
entries.
|
2007-01-22 11:45:25 +00:00
|
|
|
.Pp
|
|
|
|
.Fx Ns 's
|
|
|
|
.Lb libc
|
|
|
|
provides stubs for compatibility with NSS modules
|
2020-09-07 13:44:54 +00:00
|
|
|
written for the GNU C Library
|
2007-01-22 11:45:25 +00:00
|
|
|
.Nm nsswitch
|
|
|
|
interface.
|
|
|
|
However, these stubs only support the use of the
|
|
|
|
.Dq Li passwd
|
|
|
|
and
|
|
|
|
.Dq Li group
|
|
|
|
databases.
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr nsdispatch 3 ,
|
2007-10-19 00:16:29 +00:00
|
|
|
.Xr nscd.conf 5 ,
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Xr resolv.conf 5 ,
|
2007-10-19 00:16:29 +00:00
|
|
|
.Xr nscd 8 ,
|
2006-05-20 06:58:46 +00:00
|
|
|
.Xr ypbind 8
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file format first appeared in
|
2002-12-12 22:22:51 +00:00
|
|
|
.Fx 5.0 .
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
It was imported from the
|
|
|
|
.Nx
|
|
|
|
Project, where it appeared first in
|
|
|
|
.Nx 1.4 .
|
|
|
|
.Sh AUTHORS
|
2014-06-23 08:27:27 +00:00
|
|
|
.An Luke Mewburn Aq Mt lukem@netbsd.org
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
wrote this freely distributable name-service switch implementation,
|
2020-09-07 13:44:54 +00:00
|
|
|
using ideas from the ULTRIX
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Xr svc.conf 5
|
2020-09-07 13:44:54 +00:00
|
|
|
and Solaris
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
.Xr nsswitch.conf 4
|
|
|
|
manual pages.
|