2 .\" Copyright 1998, 1999, 2002 Thorsten Kukuk, Germany
4 .\" This file is part of ypbind-mt.
6 .\" Author: Thorsten Kukuk <kukuk@suse.de>
8 .\" ypbind-mt is free software; you can redistribute it and/or
9 .\" modify it under the terms of the GNU General Public License as
10 .\" published by the Free Software Foundation; either version 2 of the
11 .\" License, or (at your option) any later version.
13 .\" ypbind-mt is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 .\" General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with ypbind-mt; see the file COPYING. If not,
20 .\" write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 .\" Boston, MA 02111-1307, USA.
23 .\" Japanese Version Copyright (c) 1999 NAKANO Takeo all rights reserved.
24 .\" Translated Tue Sep 14 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
25 .\" Updated Fri Oct 22 1999 by NAKANO Takeo
27 .\"WORD: binding ¥Ð¥¤¥ó¥É
29 .TH ypbind 8 "April 2002" "ypbind-mt Version 1.16"
32 .\"O ypbind - NIS binding process
33 ypbind \- NIS ¥Ð¥¤¥ó¥É¥×¥í¥»¥¹
62 .\"O finds the server for NIS domains and maintains the NIS binding
63 .\"O information. The client (normaly the NIS routines in the standard C library)
64 .\"O could get the information over RPC from
66 .\"O or read the binding files. The binding files resides in the directory
67 .\"O .B /var/yp/binding
68 .\"O and are conventionally named
69 .\"O .BR [domainname].[version] .
70 .\"O The supported versions are 1 and 2.
71 .\"O There could be several such files since it is possible for an NIS client
72 .\"O to be bound to more then one domain.
74 ¤Ï NIS ¥É¥á¥¤¥ó¤Î¥µ¡¼¥Ð¤òõ¤·¤ÆÀܳ¤·¡¢¤½¤Î NIS ¥Ð¥¤¥ó¥É¾ðÊó¤ò
75 ÊÝ»ý¤¹¤ë¡£¥¯¥é¥¤¥¢¥ó¥È (Ä̾ï¤Ïɸ½à C ¥é¥¤¥Ö¥é¥ê¤Î NIS ¥ë¡¼¥Á¥ó)
78 ¤Ø¤Î RPC ¤òÍѤ¤¤Æ¡¢¤¢¤ë¤¤¤Ï¥Ð¥¤¥ó¥É¥Õ¥¡¥¤¥ë¤òÆɤळ¤È¤Ë¤è¤Ã¤Æ
79 ¤³¤Î¾ðÊó¤òÆþ¼ê¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£¥Ð¥¤¥ó¥É¥Õ¥¡¥¤¥ë¤Ï
81 ¤ËÃÖ¤«¤ì¤Æ¤ª¤ê¡¢´·½¬¤Ë¤·¤¿¤¬¤Ã¤Æ
82 .B [domainname].[version]
83 ¤Î¤è¤¦¤Ê̾Á°¤¬ÉÕ¤±¤é¤ì¤Æ¤¤¤ë¡£
84 ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥Ð¡¼¥¸¥ç¥ó¤Ï 1 ¤È 2 ¤Ç¤¢¤ë¡£
85 ¤³¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤¬Ê£¿ô¸ºß¤¹¤ë¤³¤È¤â¤¢¤êÆÀ¤ë¡£¤Ê¤¼¤Ê¤é
86 NIS ¥¯¥é¥¤¥¢¥ó¥È¤ÏÊ£¿ô¤Î¥É¥á¥¤¥ó¤Ë¥Ð¥¤¥ó¥É¤¹¤ë¤³¤È¤â¤Ç¤¤ë¤«¤é¤Ç¤¢¤ë¡£
88 .\"O After a binding has been established,
90 .\"O will send YPPROC_DOMAIN requests to the current NIS server at 20 seconds
91 .\"O intervals. If it doesn't get an response or the NIS server tells that he
92 .\"O doesn't has this domain any longer,
94 .\"O will search a new NIS server. All 15 minutes
96 .\"O will check, if the current NIS server is the fastest. If it find
97 .\"O a server which answers faster, it will switch to this server.
100 .\"O to use network broadcasts to find a new server, what is insecure,
101 .\"O or you could give it a list of known, secure servers.
104 .\"O will send a ping to all server and binds to first one which answers.
105 ¥Ð¥¤¥ó¥É¤¬³ÎΩ¤¹¤ë¤È¡¢
107 ¤Ï YPPROC_DOMAIN ¥ê¥¯¥¨¥¹¥È¤ò 20 Éôֳ֤Ǹ½ºß¤Î NIS ¥µ¡¼¥Ð¤ËÁ÷¿®¤¹¤ë¡£
108 ÊÖ¿®¤¬Ê֤äƤ³¤Ê¤«¤Ã¤¿¤ê¡¢NIS ¥µ¡¼¥Ð¤«¤é¡ÖÅö³º¥É¥á¥¤¥ó¤Î¾ðÊó¤Ï¤â¤¦
109 ÊÝ»ý¤·¤Æ¤¤¤Ê¤¤¡×»Ý¤ÎÊÖ¿®¤¬Í褿¾ì¹ç¤Ë¤Ï¡¢
111 ¤Ï¿·¤·¤¤ NIS ¥µ¡¼¥Ð¤òõ¤¹¡£
114 ¸½ºß¤Î NIS ¥µ¡¼¥Ð¤¬¤â¤Ã¤È¤â¹â®¤Ç¤¢¤ë¤«¤É¤¦¤«¤Î¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¡£
115 ¤â¤·¤è¤ê¹â®¤Ê¥µ¡¼¥Ð¤¬¤¢¤ì¤Ð¡¢¤½¤Á¤é¤ËÀܳ¤òÀÚ¤êÂؤ¨¤ë¡£
116 ¿·¤·¤¤¥µ¡¼¥Ð¤òõ¤¹¤È¤¤Ë¤Ï¡¢
118 ¤Ë¥Í¥Ã¥È¥ï¡¼¥¯¥Ö¥í¡¼¥É¥¥ã¥¹¥È¤òÍѤ¤¤ë¤è¤¦¤Ë¤µ¤»¤ë¤³¤È¤â
119 ¤Ç¤¤ë¤· (¤³¤ì¤Ï°ÂÁ´¤Ç¤Ê¤¤)¡¢¤Þ¤¿¤Ï°ÂÁ´¤Ê¤³¤È¤¬¤ï¤«¤Ã¤Æ¤¤¤ë
120 ¥µ¡¼¥Ð¤Î¥ê¥¹¥È¤òÍ¿¤¨¡¢¤½¤ÎÃ椫¤éõ¤¹¤è¤¦¤Ë¤µ¤»¤ë¤³¤È¤â¤Ç¤¤ë¡£
123 ¤Ï¤¹¤Ù¤Æ¤Î¥µ¡¼¥Ð¤Ë ping ¤òÁ÷¤ê¡¢ºÇ½é¤ËÅú¤¨¤¿¥µ¡¼¥Ð¤Ë¥Ð¥¤¥ó¥É¤¹¤ë¡£
125 .\"O Unless the option
127 .\"O is used, ypbind detaches itself from the controlling terminal and puts
128 .\"O itself into background.
132 .\"O for logging errors and warnings.
133 .\"O At startup or when receiving signal SIGHUP,
137 .\"O and tries to use the entries for its initial binding. Valid entries
140 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
142 ¤Ï¼«Ê¬¼«¿È¤òÀ©¸æüËö¤«¤éʬΥ¤·¤Æ¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤ØÃÖ¤¯¡£
144 ¤Ï¥¨¥é¡¼¤ä·Ù¹ð¥á¥Ã¥»¡¼¥¸¤ÎµÏ¿¤Ë
147 µ¯Æ°»þ¤ä SIGHUP ¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤ë¤È¡¢
151 ¥Õ¥¡¥¤¥ë¤ò¥Ñ¡¼¥¹¤·¤Æ¡¢¤½¤Î¥¨¥ó¥È¥ê¤òÍѤ¤¤ÆºÇ½é¤Î¥Ð¥¤¥ó¥É¤ò
152 ¹Ô¤ª¤¦¤È¤¹¤ë¡£Í¸ú¤Ê¥¨¥ó¥È¥ê¤Ï°Ê²¼¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¢¤ë¡£
163 .\"O You could have more then one entry of this type for a single domain.
169 ¤³¤Î»ØÄê¤Ï¡¢°ì¤Ä¤Î¥É¥á¥¤¥ó¤ËÂФ·¤ÆÊ£¿ô²ó¹Ô¤Ã¤Æ¤«¤Þ¤ï¤Ê¤¤¡£
176 .\"O Use broadcast on the local net for domain
180 ¤ËÂФ·¤Æ¤Ï¥í¡¼¥«¥ë¥Í¥Ã¥È¤Ë¥Ö¥í¡¼¥É¥¥ã¥¹¥È¤ò¹Ô¤¦¡£
188 .\"O for the local domain.
189 ¥í¡¼¥«¥ë¥É¥á¥¤¥ó¤Î¾ðÊó¤ò¥µ¡¼¥Ð¡¼
194 .\"O A broadcast entry in the configuration file will overwrite a ypserver/server
195 .\"O entry and a ypserver/server entry broadcast. If all given server are down,
199 .\"O switch to use broadcast.
200 ÀßÄê¥Õ¥¡¥¤¥ë¤Ë broadcast ¥¨¥ó¥È¥ê¤¬¤¢¤Ã¤¿¾ì¹ç¤Ï¡¢
201 ypserver/hostname ¥¨¥ó¥È¥ê¤Ï¾å½ñ¤¤µ¤ì¤ë¡£
202 boradcast ¥¨¥ó¥È¥ê¤¬¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢¤½¤Î¾¤Î
203 ¥¨¥ó¥È¥ê¤ÇÍ¿¤¨¤é¤ì¤¿¥µ¡¼¥ÐÁ´¤Æ¤¬¥À¥¦¥ó¤·¤Æ¤¤¤ë¾ì¹ç¤Ç¤â¡¢
205 ¤Ï¥Ö¥í¡¼¥É¥¥ã¥¹¥È¤Ï\fBÍѤ¤¤Ê¤¤\fP¡£
207 .\"O will try at first
211 .\"O for resolving the hosts names from
212 .\"O .BR /etc/yp.conf .
216 ¤ÇÍ¿¤¨¤é¤ì¤¿¥Û¥¹¥È̾¤Î²ò·è¤ò¤¹¤ëºÝ¤Ë¤Ï¡¢¤Þ¤º
223 .\"O couldn't reconfigure the search order, it will use only
227 .\"O isn't available, you could only use IP-addresses in
228 .\"O .BR /etc/hosts .
230 .\"O could only reconfigure the search order with glibc 2.x.
232 ¤Ï¸¡º÷½ç½ø¤ÎºÆÀßÄ꤬¤Ç¤¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
238 ¤Ë IP ¥¢¥É¥ì¥¹¤Î½ñ¤«¤ì¤Æ¤¤¤ë¥Û¥¹¥È¤·¤«»ØÄê¤Ç¤¤Ê¤¤¡£
240 ¤Ç¸¡º÷½ç½ø¤ÎºÆÀßÄê¤ò¤¹¤ë¤¿¤á¤Ë¤Ï glibc 2.x ¤¬É¬ÍפǤ¢¤ë¡£
243 .\"O option is specified,
245 .\"O will ignore the configuration file.
246 .\"O If the file does not exist or if there are no valid entries,
250 ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Ï¡¢
252 ¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤ò̵»ë¤¹¤ë¡£
253 ÀßÄê¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤«¤Ã¤¿¤ê¡¢Í¸ú¤Ê¥¨¥ó¥È¥ê¤¬¤Ò¤È¤Ä¤â¤Ê¤«¤Ã¤¿
260 .\"O is a special version which uses
262 .\"O It will start 2 more threads. The master process services RPC requests
263 .\"O asking for binding info. The first thread initializes the binding and
264 .\"O checks it periodically. Upon failure, the binding is invalidated and
265 .\"O the process tries again to find a valid server. The second thread
266 .\"O will handle all the signals.
271 ¤òÍѤ¤¤¿Æüì¤Ê¥Ð¡¼¥¸¥ç¥ó¤Ç¤¢¤ë¡£¤³¤Î
273 ¤Ï 2 ¤Ä¤Î¥¹¥ì¥Ã¥É¤ò¿·¤¿¤ËÀ¸À®¤¹¤ë¡£¥Þ¥¹¥¿¡¼¥×¥í¥»¥¹¤Ï
274 ¥Ð¥¤¥ó¥É¾ðÊó¤ò¿Ò¤Í¤Æ¤¯¤ë RPC ¥ê¥¯¥¨¥¹¥È¤Ë¥µ¡¼¥Ó¥¹¤¹¤ë¡£
275 ºÇ½é¤Î¥¹¥ì¥Ã¥É¤Ï¥Ð¥¤¥ó¥É¤ò½é´ü²½¤·¤Æ¡¢¤½¤ì¤òÄê´üŪ¤Ë¥Á¥§¥Ã¥¯¤¹¤ë¡£
276 ¾ã³²¤¬µ¯¤³¤Ã¤¿¾ì¹ç¤Ë¤Ï¥Ð¥¤¥ó¥É¤Ï̵¸ú¤È¤Ê¤ê¡¢¤³¤Î¥×¥í¥»¥¹¤Ï
277 ͸ú¤Ê¥µ¡¼¥Ð¤òºÆ¤Ó¸«¤Ä¤±¤è¤¦¤È¤¹¤ë¡£Æó¤Ä¤á¤Î¥¹¥ì¥Ã¥É¤Ï
278 ¤¹¤Ù¤Æ¤Î¥·¥°¥Ê¥ë¤ò½èÍý¤¹¤ë¡£
284 .\"O Send a broadcast to request the information needed to bind to a
285 .\"O specific NIS server. With this option,
287 .\"O will be ignored.
288 ŬÀÚ¤Ê NIS ¥µ¡¼¥Ð¤Ë¥Ð¥¤¥ó¥É¤¹¤ë¤¿¤á¤ËɬÍפʾðÊó¤ò¼ý½¸¤¹¤ë¤¿¤á¡¢
289 ¥Ö¥í¡¼¥É¥¥ã¥¹¥È¤òÁ÷¤ë¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È
296 .\"O from any remote machine to change the binding for a domain via the
298 .\"O command. By default, no one can change the binding. This option is really
299 .\"O insecure. If you change a binding for a domain, all the current known
300 .\"O servers for this domain will be forgotten. If the new server goes down,
302 .\"O will use the old searchlist.
303 Ǥ°Õ¤Î¥ê¥â¡¼¥È¥Þ¥·¥ó¤«¤é¡¢
305 ¤òÍѤ¤¤Æ¥É¥á¥¤¥ó¤ËÂФ¹¤ë¥Ð¥¤¥ó¥É¤òÊѹ¹¤¹¤ëµö²Ä¤ò
307 ¤ËÍ¿¤¨¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥Ð¥¤¥ó¥É¤òÊѹ¹¤¹¤ë¤³¤È¤Ïï¤Ë¤â¤Ç¤¤Ê¤¤¡£
308 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ÏÈó¾ï¤Ë´í¸±¤Ç¤¢¤ë¡£¥É¥á¥¤¥ó¤ËÂФ¹¤ë¥Ð¥¤¥ó¥É¤ò
309 Êѹ¹¤¹¤ë¤È¡¢Ç§¼±¤·¤Æ¤¤¤¿¤½¤Î¥É¥á¥¤¥ó¤Î¥µ¡¼¥Ð¤òÁ´¤Æ˺¤ì¤Æ¤·¤Þ¤¦¡£
310 ¤â¤·¤½¤Î¿·¤·¤¤¥µ¡¼¥Ð¤¬¥À¥¦¥ó¤·¤¿¾ì¹ç¤Ë¤Ï¡¢
312 ¤Ï¸Å¤¤¸¡º÷¥ê¥¹¥È¤òÍѤ¤¤ë¤³¤È¤Ë¤Ê¤ë¡£
319 .\"O on the local machine is allowed to chang the binding. Such requests
320 .\"O are only allowd from
323 ¤ÈƱ¤¸¤À¤¬¡¢¥í¡¼¥«¥ë¥Þ¥·¥ó¤Î
325 ¤À¤±¤¬¥Ð¥¤¥ó¥É¤òÊѹ¹¤Ç¤¤ë¡£¤½¤Î¤è¤¦¤ÊÍ×µá¤Ï
331 .\"O only checks if the config file has syntax errors and exits.
332 ÀßÄê¥Õ¥¡¥¤¥ë¤Ëʸˡ¥¨¥é¡¼¤¬¤Ê¤¤¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤·¤Æ¡¢
333 ¤½¤Î¤Þ¤Þñ¤Ë½ªÎ»¤¹¤ë¡£
340 .\"O will not put itself into background, and error messages and debug
341 .\"O output are written to standard error.
343 ¤ò¥Ç¥Ð¥Ã¥°¥â¡¼¥É¤Çµ¯Æ°¤¹¤ë¡£
345 ¤Ï¼«¿È¤ò¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤ËÁ÷¤é¤º¡¢¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤È
346 ¥Ç¥Ð¥Ã¥°½ÐÎϤòɸ½à¥¨¥é¡¼½ÐÎϤ˽ñ¤½Ð¤¹¡£
351 .\"O accept answers from servers running on an illegal port number. This should
352 .\"O usually be avoided, but is required by some
355 Àµ¤·¤¯¤Ê¤¤¥Ý¡¼¥ÈÈÖ¹æ¤ÇÆ°ºî¤·¤Æ¤¤¤ë¥µ¡¼¥Ð¤«¤é¤ÎÊÖ»ö¤ò¼õ¤±¼è¤ë¡£
356 ¤³¤ì¤ÏÄ̾ïÍѤ¤¤ë¤Ù¤¤Ç¤Ê¤¤¤¬¡¢
358 ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤Ã¤Æ¤ÏɬÍפȤµ¤ì¤ë¤³¤È¤â¤¢¤ë¡£
362 .\"O will not check if the binding is alive. This option is for use with
363 .\"O dialup connections to prevent
365 .\"O from keeping the connection unnessecarily open or causing autodials.
366 ¥Ð¥¤¥ó¥É¤¬»ý³¤·¤Æ¤¤¤ë¤«¤ò¥Á¥§¥Ã¥¯¤·¤Ê¤¤¡£
367 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¥À¥¤¥¢¥ë¥¢¥Ã¥×Àܳ¤Î¾ì¹ç¤ËÊØÍø¤Ç¤¢¤ë¡£
369 ¤Î¤ß¤Ë¤è¤ëÉÔɬÍפÊÀܳ¤òÀڤ俤ꡢ¥ª¡¼¥È¥À¥¤¥¢¥ë¤ò¤·¤Ê¤¤¤è¤¦¤Ë¤Ç¤¤ë¡£
371 .BR "\-f" " configfile"
383 .\"O Prints the version number
384 ¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
388 .\"O Binding to multiple domains is tested and works.
389 .\"O Load sharing between multiple servers for a single domain is
392 .\"O will always try to bind a domain to a server. If there is no valid
393 .\"O server in the list or answers to a broadcast, the domain is unbounded.
394 Ê£¿ô¥É¥á¥¤¥ó¤Ø¤Î¥Ð¥¤¥ó¥É¤â¥Æ¥¹¥È¤µ¤ì¤Æ¤ª¤ê¡¢Æ°ºî¤¹¤ë¡£
395 ñ°ì¥É¥á¥¤¥ó¤Ë¤ª¤±¤ëÊ£¿ô¥µ¡¼¥Ð¤Ø¤ÎÉé²Ùʬ»¶¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
397 ¤Ï¾ï¤Ë¥É¥á¥¤¥ó¤ò¥µ¡¼¥Ð¤Ø¥Ð¥¤¥ó¥É¤·¤è¤¦¤È¤¹¤ë¡£
398 ¥ê¥¹¥È¤Ë͸ú¤Ê¥µ¡¼¥Ð¤¬¤Ê¤¤¾ì¹ç¤ä¡¢¥Ö¥í¡¼¥É¥¥ã¥¹¥È¤ËÂФ¹¤ë
399 È¿±þ¤¬¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥É¥á¥¤¥ó¤Ø¤Î¥Ð¥¤¥ó¥É¤Ï²ò½ü¤µ¤ì¤ë¡£
405 .\"O configuration file.
408 .BI /var/yp/binding/[domainname].[version]
409 .\"O binding file containing information about each NIS domain.
410 ³Æ¡¹¤Î NIS ¥É¥á¥¤¥ó¤Ë´Ø¤¹¤ë¾ðÊó¤ò´Þ¤à¥Ð¥¤¥ó¥É¥Õ¥¡¥¤¥ë¡£
412 .B /var/run/ypbind.pid
413 .\"O contains the process id of the currently running
418 ¥Þ¥¹¥¿¡¼¥×¥í¥»¥¹¤Î¥×¥í¥»¥¹ id ¤¬½ñ¤«¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¡£
424 .BR ypdomainname (8),
431 .\"O was written by Thorsten Kukuk <kukuk@suse.de>.
433 ¤Ï Thorsten Kukuk <kukuk@suse.de> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¡£