Date: Tue, 02 Mar 1999 17:53:41 +0800 From: Jarvis Cochrane <jarvis@guru.wow.aust.com> To: "Sean O'Connell" <sean@stat.Duke.EDU> Cc: questions@freebsd.org, owensc@enc.edu Subject: Re: Help with NIS - reposted + fixed Message-ID: <36DBB4ED.B16BFC5C@guru.wow.aust.com> References: <36D36892.F8503926@guru.wow.aust.com> <19990224084956.E6818@stat.Duke.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
Sean O'Connell wrote: > I don't use my FreeBSD boxen as anything other than clients; however, > it looks like alexandria needs to be set up. In /etc/rc.conf > > nisdomainname="yourdomain" (obviously set as it was client!) > nis_client_enable="YES" > nis_client_flags="-s -Syourdoamin,alexandria,rome" (should bind to self first) > nis_server_enable="YES" > nis_ypxfrd_enable="YES" > nis_ypxfrd_flags="-h rome" (make sure it pulls from rome) > > Reboot alexandria and see if it comes up clean. You may also > want to add ypxfr into your root crontab on alexandria. I hope > this helps and would like to know if it works for future reference. After a bit of playing around, I realised that ypserv on the slave needs to have a populated /var/yp/<domain-name> directory before it will accept maps being pushed from the master. This makes sense - it firstly tells the daemon what domain(s) it is handling, which maps are handled, and whether the maps are up to date with those on the master. So, I created a tarball of the master /var/yp/OSA, copied to my NFS shared home directory, and untarred into the clients /var/yp. Then I kill -9'd ypserv ("and nuke the site from orbit, it's the only way to be sure"), and restarted it. And it worked good. This is one of those things that seems so obvious is hindsight, but which don't seem to be clearly documented anywhere for those of us who have colanders for brains... Thanks for your help... Jarvis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36DBB4ED.B16BFC5C>