Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 1996 13:31:04 -0400 (EDT)
From:      Matt Braithwaite <m-braithwaite@sjca.edu>
To:        Bill Paul <wpaul@skynet.ctr.columbia.edu>
Cc:        bugs@freebsd.org
Subject:   Re: passwd says ``yppasswdd not running on NIS master host''
Message-ID:  <199608261731.NAA01013@continuity.sjca.edu>
In-Reply-To: <199608261559.LAA12361@skynet.ctr.columbia.edu>
References:  <199608261421.KAA00853@continuity.sjca.edu> <199608261559.LAA12361@skynet.ctr.columbia.edu>

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

> - Both passwd and chpass determine the name of the master host by performing
>   a yp_master() on the passwd.byname map. (By contrast, ypwhich just 
>   asks ypbind what server it's bound to.) This means that the name of the
>   master server must be encoded correctly into the map, otherwise they'll
>   get confused. Go to the NIS server and do the following:
> 
>   # cd /var/yp/<your_domain_name>
>   # yp_mkdb -u passwd.byname | grep YP_MASTER_NAME

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.

>   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?  it sounds like i need to learn more
about YP internals. :-)

> Hope this helps.

absolutely.  thank you very much.

-- 
Matt Braithwaite #!/bin/perl -s-- -export-a-crypto-system-sig -RSA-3-lines-PERL
http://          $m=unpack(H.$w,$m."\0"x$w),$_=`echo "16do$w 2+4Oi0$d*-^1[d2%Sa
www.sjca.edu/    2/d0<X+d*La1=z\U$n%0]SX$k"[$m*]\EszlXx++p|dc`,s/^.|\W//g,print
ph/m-braithwaite pack('H*',$_)while read(STDIN,$m,($w=2*$d-1+length$n&~1)/2)
control is not convinced / but the computer has the evidence / no need to abort



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