1995-12-16 20:54:17 +00:00
|
|
|
.\" Copyright (c) 1995
|
|
|
|
.\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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:
|
|
|
|
.\" This product includes software developed by Bill Paul.
|
|
|
|
.\" 4. Neither the name of the author nor the names of any co-contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``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 Bill Paul OR CONTRIBUTORS 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.
|
|
|
|
.\"
|
1999-08-28 01:35:59 +00:00
|
|
|
.\" $FreeBSD$
|
1995-12-16 20:54:17 +00:00
|
|
|
.\"
|
|
|
|
.Dd February 4, 1995
|
|
|
|
.Dt YPSERV 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ypserv
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nd NIS database server
|
1995-12-16 20:54:17 +00:00
|
|
|
.Sh SYNOPSIS
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
.Op Fl n
|
|
|
|
.Op Fl d
|
|
|
|
.Op Fl p Ar path
|
|
|
|
.Sh DESCRIPTION
|
1997-04-15 07:41:10 +00:00
|
|
|
.Tn NIS
|
1995-12-16 20:54:17 +00:00
|
|
|
is an RPC-based service designed to allow a number of UNIX-based
|
2000-03-01 14:09:25 +00:00
|
|
|
machines to share a common set of configuration files.
|
|
|
|
Rather than
|
1995-12-16 20:54:17 +00:00
|
|
|
requiring a system administrator to update several copies of files
|
|
|
|
such as
|
|
|
|
.Pa /etc/hosts ,
|
|
|
|
.Pa /etc/passwd
|
|
|
|
and
|
|
|
|
.Pa /etc/group ,
|
1997-10-29 07:25:05 +00:00
|
|
|
which tend to require frequent changes in most environments,
|
|
|
|
.Tn NIS
|
1995-12-16 20:54:17 +00:00
|
|
|
allows groups of computers to share one set of data which can be
|
|
|
|
updated from a single location.
|
|
|
|
.Pp
|
1997-04-15 07:41:10 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility is the server that distributes
|
1997-10-29 07:25:05 +00:00
|
|
|
.Tn NIS
|
|
|
|
databases to client systems within an
|
|
|
|
.Tn NIS
|
1997-04-15 07:41:10 +00:00
|
|
|
.Em domain .
|
1997-10-29 07:25:05 +00:00
|
|
|
Each client in an
|
|
|
|
.Tn NIS
|
|
|
|
domain must have its domainname set to
|
1995-12-16 20:54:17 +00:00
|
|
|
one of the domains served by
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
using the
|
|
|
|
.Xr domainname 1
|
2000-03-01 14:09:25 +00:00
|
|
|
command.
|
|
|
|
The clients must also run
|
1995-12-16 20:54:17 +00:00
|
|
|
.Xr ypbind 8
|
|
|
|
in order to attach to a particular server, since it is possible to
|
1997-10-29 07:25:05 +00:00
|
|
|
have several servers within a single
|
|
|
|
.Tn NIS
|
|
|
|
domain.
|
1995-12-16 20:54:17 +00:00
|
|
|
.Pp
|
|
|
|
The databases distributed by
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
are stored in
|
|
|
|
.Pa /var/yp/[domainname]
|
|
|
|
where
|
|
|
|
.Pa domainname
|
2000-03-01 14:09:25 +00:00
|
|
|
is the name of the domain being served.
|
|
|
|
There can be several
|
1995-12-16 20:54:17 +00:00
|
|
|
such directories with different domainnames, and you need only one
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
daemon to handle them all.
|
|
|
|
.Pp
|
|
|
|
The databases, or
|
|
|
|
.Pa maps
|
|
|
|
as they are often called,
|
|
|
|
are created by
|
1997-04-15 07:41:10 +00:00
|
|
|
.Pa /var/yp/Makefile
|
2000-03-01 14:09:25 +00:00
|
|
|
using several system files as source.
|
|
|
|
The database files are in
|
1995-12-16 20:54:17 +00:00
|
|
|
.Xr db 3
|
|
|
|
format to help speed retrieval when there are many records involved.
|
1997-10-29 07:25:05 +00:00
|
|
|
In
|
2000-01-23 02:10:01 +00:00
|
|
|
.Fx ,
|
1997-10-29 07:25:05 +00:00
|
|
|
the maps are always readable and writable only by root for security
|
2000-03-01 14:09:25 +00:00
|
|
|
reasons.
|
|
|
|
Technically this is only necessary for the password
|
1995-12-16 20:54:17 +00:00
|
|
|
maps, but since the data in the other maps can be found in
|
|
|
|
other world-readable files anyway, it doesn't hurt and it's considered
|
|
|
|
good general practice.
|
|
|
|
.Pp
|
1997-04-15 07:41:10 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility is started by
|
2003-01-23 06:03:30 +00:00
|
|
|
.Pa /etc/rc.d/ypserv
|
1995-12-16 20:54:17 +00:00
|
|
|
if it has been enabled in
|
1997-10-29 07:25:05 +00:00
|
|
|
.Pa /etc/rc.conf .
|
1995-12-16 20:54:17 +00:00
|
|
|
.Sh SPECIAL FEATURES
|
2000-01-23 02:10:01 +00:00
|
|
|
There are some problems associated with distributing a
|
|
|
|
.Fx
|
|
|
|
password
|
1997-10-29 07:25:05 +00:00
|
|
|
database via
|
2002-08-13 16:07:28 +00:00
|
|
|
.Tn NIS :
|
2000-01-23 02:10:01 +00:00
|
|
|
.Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
normally only stores encrypted passwords
|
1995-12-16 20:54:17 +00:00
|
|
|
in
|
|
|
|
.Pa /etc/master.passwd ,
|
2000-03-01 14:09:25 +00:00
|
|
|
which is readable and writable only by root.
|
|
|
|
By turning this file
|
1997-10-29 07:25:05 +00:00
|
|
|
into an
|
|
|
|
.Tn NIS
|
|
|
|
map, this security feature would be completely defeated.
|
1995-12-16 20:54:17 +00:00
|
|
|
.Pp
|
1997-10-29 07:25:05 +00:00
|
|
|
To make up for this, the
|
2000-01-23 02:10:01 +00:00
|
|
|
.Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
version of
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
handles the
|
|
|
|
.Pa master.passwd.byname
|
|
|
|
and
|
2000-06-04 16:15:56 +00:00
|
|
|
.Pa master.passwd.byuid
|
2000-03-01 14:09:25 +00:00
|
|
|
maps in a special way.
|
|
|
|
When the server receives a request to access
|
1995-12-16 20:54:17 +00:00
|
|
|
either of these two maps, it will check the TCP port from which the
|
|
|
|
request originated and return an error if the port number is greater
|
2000-03-02 14:54:02 +00:00
|
|
|
than 1023.
|
|
|
|
Since only the superuser is allowed to bind to TCP ports
|
1995-12-16 20:54:17 +00:00
|
|
|
with values less than 1024, the server can use this test to determine
|
|
|
|
whether or not the access request came from a privileged user.
|
|
|
|
Any requests made by non-privileged users are therefore rejected.
|
|
|
|
.Pp
|
|
|
|
Furthermore, the
|
|
|
|
.Xr getpwent 3
|
2000-01-23 02:10:01 +00:00
|
|
|
routines in the
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
standard C library will only attempt to retrieve
|
1995-12-16 20:54:17 +00:00
|
|
|
data from the
|
|
|
|
.Pa master.passwd.byname
|
|
|
|
and
|
|
|
|
.Pa master.passwd.byuid
|
|
|
|
maps for the superuser: if a normal user calls any of these functions,
|
|
|
|
the standard
|
|
|
|
.Pa passwd.byname
|
|
|
|
and
|
|
|
|
.Pa passwd.byuid
|
2000-03-01 14:09:25 +00:00
|
|
|
maps will be accessed instead.
|
|
|
|
The latter two maps are constructed by
|
1997-04-15 07:41:10 +00:00
|
|
|
.Pa /var/yp/Makefile
|
1995-12-16 20:54:17 +00:00
|
|
|
by parsing the
|
|
|
|
.Pa master.passwd
|
|
|
|
file and stripping out the password fields, and are therefore
|
2000-03-01 14:09:25 +00:00
|
|
|
safe to pass on to unprivileged users.
|
|
|
|
In this way, the shadow password
|
1995-12-16 20:54:17 +00:00
|
|
|
aspect of the protected
|
|
|
|
.Pa master.passwd
|
1997-10-29 07:25:05 +00:00
|
|
|
database is maintained through
|
|
|
|
.Tn NIS .
|
1995-12-16 20:54:17 +00:00
|
|
|
.Sh NOTES
|
1999-02-23 03:49:14 +00:00
|
|
|
.Ss Setting Up Master and Slave Servers
|
|
|
|
.Xr ypinit 8
|
|
|
|
is a convenient script that will help setup master and slave
|
|
|
|
.Tn NIS
|
|
|
|
servers.
|
1995-12-16 20:54:17 +00:00
|
|
|
.Ss Limitations
|
1997-10-29 07:25:05 +00:00
|
|
|
There are two problems inherent with password shadowing in
|
|
|
|
.Tn NIS
|
1995-12-16 20:54:17 +00:00
|
|
|
that users should
|
|
|
|
be aware of:
|
|
|
|
.Bl -enum -offset indent
|
|
|
|
.It
|
1997-04-15 07:41:10 +00:00
|
|
|
The
|
|
|
|
.Sq TCP port less than 1024
|
|
|
|
test is trivial to defeat for users with
|
1995-12-16 20:54:17 +00:00
|
|
|
unrestricted access to machines on your network (even those machines
|
|
|
|
which do not run UNIX-based operating systems).
|
|
|
|
.It
|
1997-10-29 07:25:05 +00:00
|
|
|
If you plan to use a
|
2000-01-23 02:10:01 +00:00
|
|
|
.Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
system to serve
|
2000-11-14 11:20:58 +00:00
|
|
|
.No non- Ns Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
clients that
|
1995-12-16 20:54:17 +00:00
|
|
|
have no support for password shadowing (which is most of them), you
|
|
|
|
will have to disable the password shadowing entirely by uncommenting the
|
1997-04-15 07:41:10 +00:00
|
|
|
.Em UNSECURE=True
|
1995-12-16 20:54:17 +00:00
|
|
|
entry in
|
1997-04-15 07:41:10 +00:00
|
|
|
.Pa /var/yp/Makefile .
|
1995-12-16 20:54:17 +00:00
|
|
|
This will cause the standard
|
|
|
|
.Pa passwd.byname
|
|
|
|
and
|
|
|
|
.Pa passwd.byuid
|
|
|
|
maps to be generated with valid encrypted password fields, which is
|
1997-10-29 07:25:05 +00:00
|
|
|
necessary in order for
|
2000-11-14 11:20:58 +00:00
|
|
|
.No non- Ns Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
clients to perform user
|
|
|
|
authentication through
|
|
|
|
.Tn NIS .
|
1995-12-16 20:54:17 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
.Ss Security
|
1996-02-24 22:01:48 +00:00
|
|
|
In general, any remote user can issue an RPC to
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1997-10-29 07:25:05 +00:00
|
|
|
and retrieve the contents of your
|
|
|
|
.Tn NIS
|
|
|
|
maps, provided the remote user
|
2000-03-01 14:09:25 +00:00
|
|
|
knows your domain name.
|
|
|
|
To prevent such unauthorized transactions,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1996-02-24 22:01:48 +00:00
|
|
|
supports a feature called
|
|
|
|
.Pa securenets
|
|
|
|
which can be used to restrict access to a given set of hosts.
|
|
|
|
At startup,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1996-02-24 22:01:48 +00:00
|
|
|
will attempt to load the securenets information from a file
|
|
|
|
called
|
1997-04-15 07:41:10 +00:00
|
|
|
.Pa /var/yp/securenets .
|
1996-02-24 22:01:48 +00:00
|
|
|
(Note that this path varies depending on the path specified with
|
|
|
|
the
|
|
|
|
.Fl p
|
2000-03-02 14:54:02 +00:00
|
|
|
option, which is explained below.)
|
|
|
|
This file contains entries
|
1996-02-24 22:01:48 +00:00
|
|
|
that consist of a network specification and a network mask separated
|
|
|
|
by white space.
|
1997-04-15 07:41:10 +00:00
|
|
|
Lines starting with
|
|
|
|
.Dq \&#
|
2000-03-01 14:09:25 +00:00
|
|
|
are considered to be comments.
|
|
|
|
A
|
1996-02-24 22:01:48 +00:00
|
|
|
sample securenets file might look like this:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
# allow connections from local host -- mandatory
|
|
|
|
127.0.0.1 255.255.255.255
|
|
|
|
# allow connections from any host
|
1997-11-01 15:55:09 +00:00
|
|
|
# on the 192.168.128.0 network
|
1996-02-24 22:01:48 +00:00
|
|
|
192.168.128.0 255.255.255.0
|
|
|
|
# allow connections from any host
|
|
|
|
# between 10.0.0.0 to 10.0.15.255
|
|
|
|
10.0.0.0 255.255.240.0
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
If
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1996-02-24 22:01:48 +00:00
|
|
|
receives a request from an address that matches one of these rules,
|
2000-03-01 14:09:25 +00:00
|
|
|
it will process the request normally.
|
|
|
|
If the address fails to match
|
1996-02-24 22:01:48 +00:00
|
|
|
a rule, the request will be ignored and a warning message will be
|
2000-03-01 14:09:25 +00:00
|
|
|
logged.
|
|
|
|
If the
|
1996-02-24 22:01:48 +00:00
|
|
|
.Pa /var/yp/securenets
|
|
|
|
file does not exist,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1996-02-24 22:01:48 +00:00
|
|
|
will allow connections from any host.
|
|
|
|
.Pp
|
1997-04-15 07:41:10 +00:00
|
|
|
The
|
|
|
|
.Nm
|
2002-07-14 14:47:15 +00:00
|
|
|
utility also has support for Wietse Venema's
|
1997-04-15 07:41:10 +00:00
|
|
|
.Em tcpwrapper
|
2002-02-06 20:48:03 +00:00
|
|
|
package.
|
2000-03-01 14:09:25 +00:00
|
|
|
This allows the administrator to use the tcpwrapper
|
2001-08-10 17:35:21 +00:00
|
|
|
configuration files
|
|
|
|
.Pa ( /etc/hosts.allow
|
1996-02-24 22:01:48 +00:00
|
|
|
and
|
|
|
|
.Pa /etc/hosts.deny )
|
|
|
|
for access control instead of
|
|
|
|
.Pa /var/yp/securenets .
|
|
|
|
.Pp
|
|
|
|
Note: while both of these access control mechanisms provide some
|
|
|
|
security, they, like the privileged port test, are both vulnerable
|
1997-04-15 07:41:10 +00:00
|
|
|
to
|
|
|
|
.Dq IP spoofing
|
|
|
|
attacks.
|
1995-12-16 20:54:17 +00:00
|
|
|
.Pp
|
1996-02-26 02:34:27 +00:00
|
|
|
.Ss NIS v1 compatibility
|
|
|
|
This version of
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1997-10-29 07:25:05 +00:00
|
|
|
has some support for serving
|
|
|
|
.Tn NIS
|
|
|
|
v1 clients.
|
2000-01-23 02:10:01 +00:00
|
|
|
The
|
2001-07-15 08:06:20 +00:00
|
|
|
.Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
.Tn NIS
|
|
|
|
implementation only uses the
|
|
|
|
.Tn NIS
|
|
|
|
v2 protocol, however other implementations
|
1996-02-26 20:09:22 +00:00
|
|
|
include support for the v1 protocol for backwards compatibility
|
2000-03-01 14:09:25 +00:00
|
|
|
with older systems.
|
|
|
|
The
|
1996-02-26 02:34:27 +00:00
|
|
|
.Xr ypbind 8
|
|
|
|
daemons supplied with these systems will try to establish a binding
|
1997-10-29 07:25:05 +00:00
|
|
|
to an
|
|
|
|
.Tn NIS
|
|
|
|
v1 server even though they may never actually need it (and they may
|
1996-02-26 02:34:27 +00:00
|
|
|
persist in broadcasting in search of one even after they receive a
|
|
|
|
response from a v2 server). Note that while
|
|
|
|
support for normal client calls is provided, this version of
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
2001-08-08 18:32:06 +00:00
|
|
|
does not handle v1 map transfer requests; consequently, it cannot
|
1997-10-29 07:25:05 +00:00
|
|
|
be used as a master or slave in conjunction with older
|
|
|
|
.Tn NIS
|
|
|
|
servers that
|
2000-03-01 14:09:25 +00:00
|
|
|
only support the v1 protocol.
|
|
|
|
Fortunately, there probably aren't any
|
1996-02-26 02:34:27 +00:00
|
|
|
such servers still in use today.
|
1995-12-16 20:54:17 +00:00
|
|
|
.Ss NIS servers that are also NIS clients
|
|
|
|
Care must be taken when running
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
in a multi-server domain where the server machines are also
|
1997-10-29 07:25:05 +00:00
|
|
|
.Tn NIS
|
2000-03-01 14:09:25 +00:00
|
|
|
clients.
|
|
|
|
It is generally a good idea to force the servers to
|
1995-12-16 20:54:17 +00:00
|
|
|
bind to themselves rather than allowing them to broadcast bind
|
|
|
|
requests and possibly become bound to each other: strange failure
|
|
|
|
modes can result if one server goes down and
|
2000-03-02 14:54:02 +00:00
|
|
|
others are dependent upon on it.
|
|
|
|
(Eventually all the clients will
|
1995-12-16 20:54:17 +00:00
|
|
|
time out and attempt to bind to other servers, but the delay
|
|
|
|
involved can be considerable and the failure mode is still present
|
|
|
|
since the servers might bind to each other all over again).
|
|
|
|
.Pp
|
|
|
|
Refer to the
|
|
|
|
.Xr ypbind 8
|
|
|
|
man page for details on how to force it to bind to a particular
|
|
|
|
server.
|
|
|
|
.Sh OPTIONS
|
|
|
|
The following options are supported by
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm :
|
1995-12-16 20:54:17 +00:00
|
|
|
.Bl -tag -width flag
|
|
|
|
.It Fl n
|
|
|
|
This option affects the way
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
handles yp_match requests for the
|
|
|
|
.Pa hosts.byname
|
|
|
|
and
|
|
|
|
.Pa hosts.byaddress
|
2000-03-01 14:09:25 +00:00
|
|
|
maps.
|
|
|
|
By default, if
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
can't find an entry for a given host in its hosts maps, it will
|
2000-03-01 14:09:25 +00:00
|
|
|
return an error and perform no further processing.
|
|
|
|
With the
|
1995-12-16 20:54:17 +00:00
|
|
|
.Fl n
|
|
|
|
flag,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
will go one step further: rather than giving up immediately, it
|
|
|
|
will try to resolve the hostname or address using a DNS nameserver
|
2000-03-01 14:09:25 +00:00
|
|
|
query.
|
|
|
|
If the query is successful,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
will construct a fake database record and return it to the client,
|
|
|
|
thereby making it seem as though the client's yp_match request
|
|
|
|
succeeded.
|
|
|
|
.Pp
|
2002-12-27 12:15:40 +00:00
|
|
|
This feature is provided for compatibility with SunOS 4.1.x,
|
1995-12-16 20:54:17 +00:00
|
|
|
which has brain-damaged resolver functions in its standard C
|
1997-10-29 07:25:05 +00:00
|
|
|
library that depend on
|
|
|
|
.Tn NIS
|
|
|
|
for hostname and address resolution.
|
2000-01-23 02:10:01 +00:00
|
|
|
The
|
|
|
|
.Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
resolver can be configured to do DNS
|
1995-12-16 20:54:17 +00:00
|
|
|
queries directly, therefore it is not necessary to enable this
|
1997-10-29 07:25:05 +00:00
|
|
|
option when serving only
|
2000-01-23 02:10:01 +00:00
|
|
|
.Fx
|
1997-10-29 07:25:05 +00:00
|
|
|
.Tn NIS
|
|
|
|
clients.
|
1995-12-16 20:54:17 +00:00
|
|
|
.It Fl d
|
2000-03-01 14:09:25 +00:00
|
|
|
Cause the server to run in debugging mode.
|
|
|
|
Normally,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
reports only unusual errors (access violations, file access failures)
|
|
|
|
using the
|
|
|
|
.Xr syslog 3
|
2000-03-01 14:09:25 +00:00
|
|
|
facility.
|
|
|
|
In debug mode, the server does not background
|
1995-12-16 20:54:17 +00:00
|
|
|
itself and prints extra status messages to stderr for each
|
2000-03-01 14:09:25 +00:00
|
|
|
request that it receives.
|
|
|
|
Also, while running in debug mode,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1995-12-16 20:54:17 +00:00
|
|
|
will not spawn any additional subprocesses as it normally does
|
2000-03-02 14:54:02 +00:00
|
|
|
when handling yp_all requests or doing DNS lookups.
|
|
|
|
(These actions
|
1995-12-16 20:54:17 +00:00
|
|
|
often take a fair amount of time to complete and are therefore handled
|
|
|
|
in subprocesses, allowing the parent server process to go on handling
|
2000-03-02 14:54:02 +00:00
|
|
|
other requests.)
|
|
|
|
This makes it easier to trace the server with
|
1995-12-16 20:54:17 +00:00
|
|
|
a debugging tool.
|
|
|
|
.It Fl p Ar path
|
|
|
|
Normally,
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1997-10-29 07:25:05 +00:00
|
|
|
assumes that all
|
|
|
|
.Tn NIS
|
|
|
|
maps are stored under
|
1995-12-16 20:54:17 +00:00
|
|
|
.Pa /var/yp .
|
|
|
|
The
|
|
|
|
.Fl p
|
1997-10-29 07:25:05 +00:00
|
|
|
flag may be used to specify an alternate
|
|
|
|
.Tn NIS
|
|
|
|
root path, allowing
|
1995-12-16 20:54:17 +00:00
|
|
|
the system administrator to move the map files to a different place
|
2002-12-12 17:26:04 +00:00
|
|
|
within the file system.
|
1995-12-16 20:54:17 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width Pa -compact
|
|
|
|
.It Pa /var/yp/[domainname]/[maps]
|
1997-10-29 07:25:05 +00:00
|
|
|
the
|
|
|
|
.Tn NIS
|
|
|
|
maps
|
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 Pa /etc/nsswitch.conf
|
|
|
|
name switch configuration file
|
1996-02-24 22:01:48 +00:00
|
|
|
.It Pa /var/yp/securenets
|
1997-10-29 07:25:05 +00:00
|
|
|
host access control file
|
1995-12-16 20:54:17 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
1996-04-07 00:06:21 +00:00
|
|
|
.Xr ypcat 1 ,
|
|
|
|
.Xr db 3 ,
|
2002-02-06 20:48:03 +00:00
|
|
|
.Xr hosts_access 5 ,
|
1999-08-15 08:47:11 +00:00
|
|
|
.Xr rpc.yppasswdd 8 ,
|
2002-01-14 16:59:03 +00:00
|
|
|
.Xr yp 8 ,
|
1995-12-16 20:54:17 +00:00
|
|
|
.Xr ypbind 8 ,
|
1999-02-23 03:49:14 +00:00
|
|
|
.Xr ypinit 8 ,
|
1995-12-16 20:54:17 +00:00
|
|
|
.Xr yppush 8 ,
|
1996-04-07 00:06:21 +00:00
|
|
|
.Xr ypxfr 8
|
1998-03-23 08:31:20 +00:00
|
|
|
.Sh AUTHORS
|
1997-10-29 07:25:05 +00:00
|
|
|
.An Bill Paul Aq wpaul@ctr.columbia.edu
|
1995-12-16 20:54:17 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
This version of
|
1997-04-15 07:41:10 +00:00
|
|
|
.Nm
|
1996-08-23 00:57:08 +00:00
|
|
|
first appeared in
|
|
|
|
.Fx 2.2 .
|