From owner-freebsd-bugs Mon Aug 26 14:16:29 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA16668 for bugs-outgoing; Mon, 26 Aug 1996 14:16:29 -0700 (PDT) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA16567 for ; Mon, 26 Aug 1996 14:15:03 -0700 (PDT) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.12/8.6.9) id RAA14404; Mon, 26 Aug 1996 17:14:54 -0400 From: Bill Paul Message-Id: <199608262114.RAA14404@skynet.ctr.columbia.edu> Subject: Re: passwd says ``yppasswdd not running on NIS master host'' To: m-braithwaite@sjca.edu Date: Mon, 26 Aug 1996 17:14:53 -0400 (EDT) Cc: bugs@freebsd.org In-Reply-To: <199608261731.NAA01013@continuity.sjca.edu> from "Matt Braithwaite" at Aug 26, 96 01:31:04 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Of all the gin joints in all the towns in all the world, Matt Braithwaite had to walk into mine and say: > Bill Paul writes: > > > Everything, except you forgot to tell us what version of FreeBSD > > you're using. :) > > > > Since you said 'yppasswdd' rather than 'rpc.yppasswdd' I'm going > > to assume you're using 2.1.5. (I rewrote pretty much all of the NIS > > server-side support for 2.2.) > > you're correct; sorry. your rewrite looks very compelling (i read > about it before switching to freebsd), but i wasn't ready to go to 2.2 > while it's still under development. I can understand that. I'm a little skiddish around it myself. :) Unfortunately, I did a little mucking about in libc as well, which means that it's not a simple matter to just build the 2.2-current NIS tools on 2.1.x (unless you really, *really* know what you're doing). > holy smokes--- i changed the hostname recently, but did not rebuild > the password maps, because i didn't know about this. i just touched > master.passwd, and rebuilt, and now everything works file. Aha. Zee case, she is solved. > > YP_MASTER_NAME is a special key that the yp_mkdb program encodes into > > each NIS map as it is being built. (There are a few others too.) > > is this documented anywhere? I think the yp_mkdb(8) man page says something about it. (Some of the special keys are optional or can be controlled to some extent using command line flags, which are documented.) Ideally, the NIS & NFS book from O'Reilly should talk about this. It's not FreeBSD-specific, but someone forced^H^H^H^H^H^Hrequired to deal with NIS a lot would find himself discovering this sort of thing sooner or later. > it sounds like i need to learn more > about YP internals. :-) You think this is bad, wait until NIS+ comes along. Even I haven't figured out what to do when an NIS+ master server changes hostnames. (Of course I haven't really tried to figure it out yet. I suppose I will once I start writing my on rpc.nisd. :) -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 ============================================================================= "If you're ever in trouble, go to the CTR. Ask for Bill. He will help you." =============================================================================