Subject: RE: Changing user passwd thru a program
To: 'netbsd-users@netbsd.org' <netbsd-users@netbsd.org>
From: Sumeet Malhotra <smalhotra@rhapsodynetworks.com>
List: netbsd-users
Date: 04/17/2002 10:56:17
Thanks for the tip. I'm aware of that, but the system I'm testing against
has DES setup as of now, hence the code.

Sumeet

-----Original Message-----
From: Julio Merino [mailto:jmmv@hispabsd.org]
Sent: Wednesday, April 17, 2002 10:52 AM
To: 'netbsd-users@netbsd.org'
Subject: Re: Changing user passwd thru a program


On Wed, Apr 17, 2002 at 01:30:29PM -0400, Steven M. Bellovin wrote:
> In message
<45BEF1D68145D51186C100B0D0AABE659FEB1D@med.corp.rhapsodynetworks.co
> >
> >if (strcmp(crypt(oldpw, pw->pw_passwd), pw->pw_passwd) != 0)
> >        return ACCESS_DENIED;
> >

AFAIK, crypt() works only with DES passwords. What if you have configured
MD5 support for passwd.conf (what I do) ?

-- 
Of course it runs NetBSD - http://www.netbsd.org
HispaBSD member - http://www.hispabsd.org
Julio Merino <jmmv@hispabsd.org>