From owner-freebsd-questions Tue Mar 2 1:53:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from regpc30.murdoch.edu.au (regpc30.murdoch.edu.au [134.115.241.13]) by hub.freebsd.org (Postfix) with ESMTP id 7D1D014CD3 for ; Tue, 2 Mar 1999 01:53:12 -0800 (PST) (envelope-from jarvis@guru.wow.aust.com) Received: from guru.wow.aust.com (regmac23.murdoch.edu.au [134.115.241.182]) by regpc30.murdoch.edu.au (8.8.8/8.8.8) with ESMTP id RAA18769; Tue, 2 Mar 1999 17:52:41 +0800 (WST) (envelope-from jarvis@guru.wow.aust.com) Message-ID: <36DBB4ED.B16BFC5C@guru.wow.aust.com> Date: Tue, 02 Mar 1999 17:53:41 +0800 From: Jarvis Cochrane Reply-To: jarvis@guru.wow.aust.com X-Mailer: Mozilla 4.5 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 To: "Sean O'Connell" Cc: questions@freebsd.org, owensc@enc.edu Subject: Re: Help with NIS - reposted + fixed References: <36D36892.F8503926@guru.wow.aust.com> <19990224084956.E6818@stat.Duke.EDU> Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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/ 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