Date: Wed, 4 Jun 1997 14:00:01 -0700 (PDT) From: Bill Paul <wpaul@skynet.ctr.columbia.edu> To: freebsd-bugs Subject: Re: bin/3778: ypbind -S domainname,server1,... does not function Message-ID: <199706042100.OAA12251@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/3778; it has been noted by GNATS. From: Bill Paul <wpaul@skynet.ctr.columbia.edu> To: jin@iss-p1.lbl.gov Cc: gnats@freebsd.org Subject: Re: bin/3778: ypbind -S domainname,server1,... does not function Date: Wed, 4 Jun 1997 15:23:21 -0400 (EDT) Of all the gin joints in all the towns in all the world, Jin Guojun[ITG] had to walk into mine and say: > > >Number: 3778 > >Category: bin > >Synopsis: ypbind -S domainname,server1,... does not function > >Confidential: no > >Severity: non-critical > >Priority: medium > >Responsible: freebsd-bugs > >State: open > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Wed Jun 4 11:20:02 PDT 1997 > >Last-Modified: > >Originator: Jin Guojun[ITG] > >Organization: > >Release: FreeBSD 2.2-RELEASE i386 > >Environment: > > All RELEASES > >Description: > > iss-p1# ypbind -S itg,george > iss-p1# ypwhich > can't yp_bind: Reason: Domain not bound > iss-p1# ps uxgw | grep yp > root 190 0.0 0.9 192 276 ?? Ss 11:03AM 0:00.01 ypbind -S itg > root 191 0.0 0.7 192 196 ?? S 11:03AM 0:00.00 ypbind -S itg > iss-p1# which ypbind > /usr/sbin/ypbind > > Actually, the need is to specify mulltiple ypserver: > > iss-p1# ypbind -S itg,george,slave1,slave2 > > for YP clients on different subnet. Your description of the problem is not very clear: it is difficult to tell exactly what it is you are trying to do. My main question has to do with the client iss-p1 and the server george: are they on the same subnet or not? If not, then the behavior you are experiencing is not a bug: the -S flag does not provide any special magic that allows NIS clients to bind to servers on remote subnets. With the -S flag, ypbind still transmits broadcasts and waits for replies from qualified servers; the difference is that with the -S option, ypbind will only honor replies from machines specified in the 'restricted mode' server list. It will also only bind to the restricted mode domain. The only way to ypbind do what you want it to do is to download the ypbind source code from FreeBSD-current and compile that on your 2.2 system. (It should compile without any problem.) Once you have that, use the following: # ypbind -m -S domain,server1,server2,server3,server4,... The -m flag is new: it tells ypbind to use a 'many-cast' instead of a broadcast. This will allow it to bind to any of the servers even if they are on remote subnets. Please try this: if it fixes your problem, I let me know so I can close out this PR. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" =============================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706042100.OAA12251>