Date: Sun, 18 Jun 1995 12:25:43 -0400 From: "House of Debuggin'" <wpaul@skynet.ctr.columbia.edu> To: freebsd-bugs@freebsd.org, wilcox@math.psu.edu Cc: bugs@freebsd.org Subject: Re: More on NIS problems Message-ID: <199506181625.MAA03947@skynet.ctr.columbia.edu>
next in thread | raw e-mail | index | archive | help
> I've seen a lot of nis problems running around. Here is my input. >have a FreeBSD 2.0.5R machine being the master server for what is going >to be a ton of freebsd machines. I have this for my netgroup file >staffhost1 (machine.xxx.yyy.zzz,-,) (machine2.xxx.yyy.zzz,-,) >staffhost2 (machine3.xxx.yyy.zzz,-,) (machine4.xxx.yyy.zzz,-,) >staffhosts staffhost1 staffhost2 >Then when I do ypmatch staffhosts netgroup I get >staffhost1 staffhost2 staffhosts staffhost1 staffhost2 >If I try to expand this in any fashion, it gets real ugly real quick. >Any reason this is doing this? >-Ken Wilcox Yeah: the reason is the 'netgroup' (and 'ethers.*' and 'bootparams') targets in /var/yp/Makefile are a little goofy. (My fault I'm afraid: I'm not terribly good with awk.) I just commited a fix to -current. Here's a diff that should fix the problem. Apply this to a virgin copy of /var/yp/Makefile, then remangle it to fit your system. The first hunk will undoubtedly fail since the CVS id strings may not match exactly. You can safely ignore the error. 4c4 < # $Id: Makefile.yp,v 1.7 1995/05/30 05:05:34 rgrimes Exp $ --- > # $Id: Makefile.yp,v 1.6 1995/04/02 01:53:47 wpaul Exp $ 29c29 < # --- > # 121c121 < print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ --- > print $$2"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ 132c132 < print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ --- > print $$1"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ 143c143 < print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(BOOTPARAMS) \ --- > print $$0 }' $^ | $(DBLOAD) -i $(BOOTPARAMS) \ 154c154 < print $$0"\t"$$0 }' $^ | $(DBLOAD) -i $(NETGROUP) \ --- > print $$0 }' $^ | $(DBLOAD) -i $(NETGROUP) \ Note that I'm currently working on closing out three NIS-related problem reports (508, 509 and 510) which have to do libc's handling of netgroups. I have preliminary fixes for 508 and 509, and I'm still working with Bill Fenner to try and resolve 510 (he claims that the +@netgroup host matching in /etc/hosts.equiv doesn't work, but I haven't been able to duplicate the problem, so I'm kinda stumped). PR #508 and #509 shouldn't affect you unless you have certain errors in your netgroup database, but if you run into problems I can send you a patch. On the other hand, if you *do* have +@netgroup host matching working, I'd like to hear about it so I'll know I'm not crazy. If you uncover any other problems, don't hesitate to report them. -Bill ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~T~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Bill Paul (212) 854-6020 | System Manager Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Møøse Illuminati: ignore it and be confused, or join it and be confusing! ~~~~~~ "Welcome to All Things BSDish! If it's not BSDish, it's crap!" ~~~~~~~
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506181625.MAA03947>