From owner-freebsd-current@FreeBSD.ORG Wed May 19 09:13:55 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0843416A4CE for ; Wed, 19 May 2004 09:13:55 -0700 (PDT) Received: from mail024.syd.optusnet.com.au (mail024.syd.optusnet.com.au [211.29.132.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B14743D39 for ; Wed, 19 May 2004 09:13:53 -0700 (PDT) (envelope-from akm@theinternet.com.au) Received: from theinternet.com.au (c211-30-103-113.carlnfd1.nsw.optusnet.com.au [211.30.103.113]) i4JGD2R01449; Thu, 20 May 2004 02:13:03 +1000 Received: from theinternet.com.au (localhost [127.0.0.1]) by theinternet.com.au (8.12.11/8.12.11) with ESMTP id i4JGCWW7012478; Thu, 20 May 2004 02:12:32 +1000 (EST) (envelope-from akm@theinternet.com.au) Received: (from akm@localhost) by theinternet.com.au (8.12.11/8.12.11/Submit) id i4JGCWjr012477; Thu, 20 May 2004 02:12:32 +1000 (EST) (envelope-from akm) Date: Thu, 20 May 2004 02:12:32 +1000 From: Andrew Milton To: Stavros M Grigorakakis Message-ID: <20040519161232.GI68672@camelot.theinternet.com.au> Mail-Followup-To: Stavros M Grigorakakis , freebsd-current@freebsd.org References: <3188.195.251.249.141.1084982101.squirrel@aegean.dmst.aueb.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3188.195.251.249.141.1084982101.squirrel@aegean.dmst.aueb.gr> User-Agent: Mutt/1.5.6i cc: freebsd-current@freebsd.org Subject: Re: FreeBSD NIS server and LINUX NIS clients X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 May 2004 16:13:55 -0000 +-------[ Stavros M Grigorakakis ]---------------------- | | FreeBSD NIS clients seem not have spotted the difference. | However having searched for possible implications i must point out that | the asterisk is used in the | /usr/src/usr.sbin/rpc.yppasswdd/yppasswdd_server.c (read comments line | 348 ) so i suggest changing line 416 | pw->pw_name, *(ptr+1) == '*' ? "*" : pw->pw_passwd, | to | pw->pw_name, *(ptr+1) == ('*'||'x') ? "x" : pw->pw_passwd, *(ptr+1) == ('*'||'x') is pretty much always going to be false, which means you're passing the password out all the time, which is why your Linux clients work after this change. You might as well use the UNSECURE="TRUE" flag in the Makefile, which would achieve the same result. -- Totally Holistic Enterprises Internet| | Andrew Milton The Internet (Aust) Pty Ltd | M:+61 416 022 411 | ACN: 082 081 472 ABN: 83 082 081 472 |akm@theinternet.com.au| Carpe Daemon