Subject: Re: NetBSD YP Server compatible with Linux YP Client ?
To: Daniel Dias GonXalves <ddg@yan.com.br>
From: Ben Collver <collver@peak.org>
List: current-users
Date: 02/23/2005 06:44:37
It's been ages since I played with NIS, but from my notes, here is what
I see mssing:

NetBSD server:

rpcbind=YES
domainname="foo.com.nis"
...
domainname foo.com.nis
ypinit -m
/etc/rc.d/rpcbind start
/etc/rc.d/rpserv start
/etc/rc.d/ypbind start
/etc/rc.d/yppasswd start

Linux client (tested on some old version of debian):

#apt-get install nis
#set domainname
#make sure rpcbind and ypbind equivallents are started
vi /etc/passwd
append new last line: +:x:::::
vi /etc/shadow
append new last line: +:::::::::
vi /etc/group
append new last line: +:::

On Wed, Feb 23, 2005 at 02:28:36PM -0000, Daniel Dias GonXalves wrote:
> I'm setup NetBSD 2.0 for YP Server: 
>  
> # YP (NIS) daemons. 
> # 
> ypbind=YES              ypbind_flags="" 
> ypserv=YES              ypserv_flags="-d" 
> yppasswdd=YES           yppasswdd_flags="" 
>  
> and need setup Linux YP client and get/translate master.passwd to shadow 
> for Linux client. 
>  
> Linux client: 
>  
> $ id test 
> uid=1001(test) gid=100(users) groups=100(users) 
> $ su test  
> Password: test 
> su: Authentication failure 
> $ 
>  
> /var/log/auth.log: 
> Feb 23 11:22:33 linux su[2837]: (pam_unix) authentication failure; 
> logname==1000 euid=0 tty=ttyp2 ruser=linux rhost=  user=test 
> Feb 23 11:22:35 linux su[2837]: pam_authenticate: Authentication failure 
>  
> How to solve this? 
>  
> []s Daniel Dias Gon?alves 
> ddg@yan.com.br