From owner-doc-jp@jp.freebsd.org  Sun Feb 13 04:08:14 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id EAA77107;
	Sun, 13 Feb 2000 04:08:14 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from sv01.geocities.co.jp (sv01.geocities.co.jp [210.153.89.155])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id EAA77102
	for <doc-jp@jp.freebsd.org>; Sun, 13 Feb 2000 04:08:14 +0900 (JST)
	(envelope-from hrs@geocities.co.jp)
Received: from mail.geocities.co.jp (mail.geocities.co.jp [210.153.89.137]) by sv01.geocities.co.jp (8.9.3+3.2W/3.7W) with ESMTP id EAA20950 for <doc-jp@jp.freebsd.org>; Sun, 13 Feb 2000 04:08:13 +0900 (JST)
Received: from mail.hrs.jp (sutnmax1-ppp41.ed.noda.sut.ac.jp [133.31.173.51]) by mail.geocities.co.jp (1.3G-GeocitiesJ-3.3) with ESMTP id EAA06315 for <doc-jp@jp.freebsd.org>; Sun, 13 Feb 2000 04:08:11 +0900 (JST)
Message-Id: <200002121908.EAA06315@mail.geocities.co.jp>
Received: from localhost (alph.hrs.jp [192.168.0.10])
	by mail.hrs.jp (8.9.3/3.7W/DomainMaster) with ESMTP id DAA06741
	for <doc-jp@jp.freebsd.org>; Sun, 13 Feb 2000 03:34:29 +0900 (JST)
	(envelope-from hrs@hrs.jp)
To: doc-jp@jp.freebsd.org
X-Mailer: Mew version 1.94 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Sun, 13 Feb 2000 03:34:26 +0900
From: Hiroki Sato <hrs@geocities.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 86
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: doc-jp 7023
Subject: [doc-jp 7023] books/handbook/advanced-networking/chapter.sgml #4
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: hrs@geocities.co.jp

$B:4F#!wEl5~M}2JBg3X$G$9!#(B

 $B$^$@$^$@B3$-$G$9!#(B

(books/handbook/advanced-networking/chapter.sgml 1.17 -> 1.18 #4)

+      <sect3>
+        <title>NIS Clients</title>
+	
+	<para> An NIS client establishes what is called a binding to a
+	  particular NIS server using the
+	  <application>ypbind</application> daemon.
+	  <application>Ypbind</application> checks the system's default
+	  domain (as set by the <command>domainname</command> command),
+	  and begins broadcasting RPC requests on the local network.
+	  These requests specify the name of the domain for which
+	  <command>ypbind</command> is attempting to establish a binding.
+	  If a server that has been configured to serve the requested
+	  domain receives one of the broadcasts, it will respond to
+	  <command>ypbind</command>,  which will record the server's
+	  address.  If there are several servers available (a master and
+	  several slaves, for example), <command>ypbind</command> will
+	  use the address of the first one to respond.  From that point
+	  on, the client system will direct all of its NIS requests to
+	  that server.  <application>Ypbind</application> will
+	  occasionally &ldquo;ping&rdquo; the server to make sure it is
+	  still up and running.  If it fails to receive a reply to one of
+	  its pings within a reasonable amount of time,
+	  <command>ypbind</command> will mark the domain as unbound and
+	  begin broadcasting again in the hopes of locating another
+	  server.</para>
+
+	<sect4>
+	  <title>Setting up an NIS client</title>
+	  
+	  <para>Setting up a FreeBSD machine to be a NIS client is fairly
+	    straight forward.</para>
+	
+	  <itemizedlist>
+	    <listitem>
+	      <para>Set the host's NIS domainname with the
+		<command>domainname</command> command, or at boot time
+		with this entry in
+		<filename>/etc/rc.conf</filename>:</para>
+
+	      <programlisting>nisdomainname="test-domain"</programlisting>
+	    </listitem>
+
+	    <listitem>
+	      <para>To import all possible password entries from the NIS
+		server, add this line to your
+		<filename>/etc/master.passwd</filename> file, using
+		<command>vipw</command>:</para>
+
+	      <programlisting>+:::::::::</programlisting>
+
+	      <note>
+		<para>This line will afford anyone with a valid account in
+		  the NIS server's password maps an account.  There are
+		  many ways to configure your NIS client by changing this
+		  line.  For more detailed reading see O'Reilly's book on
+		  <literal>Managing NFS and NIS</literal>.</para>
+	      </note>
+	    </listitem>
+
+	    <listitem>
+	      <para>To import all possible group entries from the NIS
+		server, add this line to your
+		<filename>/etc/group</filename> file:</para>
+
+	      <programlisting>+:*::</programlisting>
+	    </listitem>
+	  </itemizedlist>
+
+	  <para>After completing these steps, you should be able to run
+	    <command>ypcat passwd</command> and see the NIS server's
+	    passwd map.</para>
+	</sect4>
+      </sect3>
+    </sect2>

--
| $B:4F#(B $B9-@8!wEl5~M}2JBg3X(B <hrs@geocities.co.jp>
|
|                                  j7397067@ed.noda.sut.ac.jp(univ)
|                        hrs@jp.FreeBSD.org(FreeBSD doc-jp Project)
