*BSD News Article 64117


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newsrelay.netins.net!imci5!imci4!newsfeed.internetmci.com!howland.reston.ans.net!nntp.coast.net!fu-berlin.de!fub!unlisys!bb-data.de!news
From: mib@bb-data.de (Martin Ibert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Shadow password functions?
Date: 25 Mar 1996 16:37:26 +0100
Organization: BB-DATA GmbH, Berlin, Germany
Lines: 17
Sender: mib@laforge.ppe.bb-data.de
Message-ID: <kiaenqhxjyh.fsf@laforge.ppe.bb-data.de>
References: <4j5qf7$hja@cpmt.cyberport.net>
NNTP-Posting-Host: laforge.ppe.bb-data.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
In-reply-to: myke@cyberport.net's message of Mon, 25 Mar 1996 09:56:13 GMT
X-Newsreader: Gnus v5.1

In article <4j5qf7$hja@cpmt.cyberport.net> myke@cyberport.net (Mike Holling) writes:

: 
: I'm working on porting poppassd to FreeBSD 2.1 so our users can change
: their passwords with Eudora.  With shadowed passwords, how do I verify
: a user's password?  The original code used the encrypted entry from
: /etc/passwd, but of course that doesn't work with shadowed password
: files.

It should. The getpwent() routine copies in the encrypted password
from the shadow files for you if you call it as root.
-- 
---------------------------------------------------------------------------
Dipl.-Inform. Martin Ibert, BB-DATA GmbH, Brunnenstraße 111, D-13355 Berlin
>> e-mail <mib@bb-data.de>, phone +49-30-245-56582, fax +49-30-245-56577 <<
---------------------------------------------------------------------------
>> Disclaimer: My views do not necessarily reflect those of my employer. <<