From owner-freebsd-stable Wed Oct 23 16:28:15 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FE5437B401 for ; Wed, 23 Oct 2002 16:28:14 -0700 (PDT) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DAEF43E6A for ; Wed, 23 Oct 2002 16:28:13 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 4ADEDA804; Thu, 24 Oct 2002 09:28:06 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id 46E9D5425; Thu, 24 Oct 2002 09:28:06 +1000 (EST) Date: Thu, 24 Oct 2002 09:28:06 +1000 (EST) From: Andrew To: Mark Hennessy Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Password Authentication question In-Reply-To: <20021023111243.D82804-100000@earl-grey.cloud9.net> Message-ID: <20021024092055.L54132-100000@starbug.ugh.net.au> X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 23 Oct 2002, Mark Hennessy wrote: > running its threads as is of course NOT root. I have tried getpwnam and > getpwuid in Perl, and the results returned for the password is "*" and not > the crypted password. That's because of the not root bit. You can probably either use an external utility to do you authentication or maintain 2 password databases. As far as external utilities there are things in ports (like pwcheck I think) or you can, as someone already suggested, do it over the network and speak to something like a pop server or poppwd or some other simple service. As far as maintaining 2 databases you can synchronise either when you push your NIS maps or just every X time period via cron. Make sure the new database is accesible to the web server. Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message