Subject: Re: YP/NIS not working
To: Mehul Sanghvi <mehul.sanghvi@gmail.com>
From: Michael <macallan18@earthlink.net>
List: port-sparc64
Date: 02/12/2005 18:26:31
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

>      What's the trick to getting my NetBSD system to act as a ypclient?
See below.

>   All I need to do is have domainname return the NIS/YP domain, yes ?
No.

> At least that is what the case seems to be by looking at 
> /etc/rc.d/ypbind.  I don't believe that I
> need to have ypserv started also, do I ?
No, ypserv only needs to run on the server.

I use an AIX box as YP/NIS server here, with a mixed bunch of clients 
(NetBSD, IRIX and Solaris). On NetBSD you have to do this:
- - hack /etc/nsswitch.conf to include NIS in user-, hostname-, group- 
and so on lookups.
- - add these things to /etc/rc.conf:
	domainname = "your_yp_domain"
	rpcbind=yes
	ypbind=yes
- - run ypinit -c
reboot. That should be enough. I'm not sure if you still need to put a 
+ into the last line of /etc/passwd though, probably not.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBQg6Qp8pnzkX8Yg2nAQKHgQgAgWU99ko/INo3kqvRR1Gz4SO6eIuRSGkd
LpP8hUrKd2JWEbFeCvgYsRCAdDKapKDB0F0Ycn9nd4VmyLqIO1QEYdjrfxY2RhEU
ydCqqsnCtvhwPE7qASd6B6SO4xO3S500O8KOQhZ4r9iaw3wi3rhn1Q3VwzfgMlT0
YGMi3DN6tL2Ehrr5whoVB0BT5JKnnDCcczhgX4e45eu2l80LcXhXP9EaeZAQ7pPS
TEDm7f0r5vg76ovIOPDG8WZjnBKfalBK1ZCni4y7+ZSGr1xxY9SCMD7KhNIO2Itl
0B2ZMmWu8bCSjAsarliAVPHVNU6BvEJPYlD9tbV/Dd0vdpfW5QfrdA==
=iurr
-----END PGP SIGNATURE-----