Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 1996 17:14:53 -0400 (EDT)
From:      Bill Paul <wpaul@skynet.ctr.columbia.edu>
To:        m-braithwaite@sjca.edu
Cc:        bugs@freebsd.org
Subject:   Re: passwd says ``yppasswdd not running on NIS master host''
Message-ID:  <199608262114.RAA14404@skynet.ctr.columbia.edu>
In-Reply-To: <199608261731.NAA01013@continuity.sjca.edu> from "Matt Braithwaite" at Aug 26, 96 01:31:04 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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."
=============================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608262114.RAA14404>