Subject: Re: Changing user passwd thru a program
To: 'netbsd-users@netbsd.org' <netbsd-users@netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: netbsd-users
Date: 04/17/2002 19:51:56
--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

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

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8vbY7zz00ZOPKycwRAlk3AJ9SmnSPbbhVYEscXU0WYCkkfI8B8gCfdYek
wkFINocqHEwlxfM76taDZQA=
=1AKH
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--