From owner-freebsd-questions@FreeBSD.ORG Wed Sep 10 11:31:33 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F28C16A4BF for ; Wed, 10 Sep 2003 11:31:33 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D20A043FAF for ; Wed, 10 Sep 2003 11:31:32 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h8AIVMYB095394; Wed, 10 Sep 2003 13:31:22 -0500 (CDT) (envelope-from dan) Date: Wed, 10 Sep 2003 13:31:22 -0500 From: Dan Nelson To: Linus =?utf-8?Q?Sj=C3=B6berg?= Message-ID: <20030910183121.GA42248@dan.emsphone.com> References: <86vfs0mstq.fsf@clarke.alcom.aland.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86vfs0mstq.fsf@clarke.alcom.aland.fi> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD YP-client, Linux YP-master X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 18:31:33 -0000 In the last episode (Sep 10), Linus Sjberg said: > I have a problem with my FreeBSD-box acting as a NIS-client against > company NIS-servers. > > Everything works smoothly except for the NIS-master repeatedly logging > Sep 10 20:27:00 ypmaster ypserv[14194]: refused connect from 192.168.1.12:655 to procedure ypproc_order (my.domain,master.passwd.byname;-4) If you try to run "ypmatch YP_LAST_MODIFIED master.passwd.byname" as root (on your box and then on the master server), which error do you get? reason: No such map in server's domain reason: YP server error Missing maps shouldn't get logged as "refused", since that error is reserved for maps you are not permitted to read (either via the securenets file or if the map exists, has the YP_SECURE key, and you aren't root). I looked at the source to Linux ypserv, and the only time it logs "refused" is for those two conditions I mentioned above. If you start ypserv on the Linux box with the -d flag, it should log some more information, including exactly why requests are refused. > So, is there a way for me to configure my box so that it still runs > NIS but without asking for master.passwd? I have tried googleing on > the issue but haven't found anything appropriate... Commenting out the lookup in src/lib/libc/gen/getpwent.c:mis_map() and rebuilding world should do it. -- Dan Nelson dnelson@allantgroup.com