Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 18:13:24 +0200
From:      Peter Pentchev <roam@ringlet.net>
To:        Varshavchick Alexander <alex@metrocom.ru>
Cc:        Miguel Mendez <flynn@energyhq.homeip.net>, questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
Subject:   Re: crypt function
Message-ID:  <20020211181324.E30217@straylight.oblivion.bg>
In-Reply-To: <Pine.GSO.4.21.0202111901530.5924-100000@apache.metrocom.ru>; from alex@metrocom.ru on Mon, Feb 11, 2002 at 07:04:15PM %2B0300
References:  <20020211180016.C30217@straylight.oblivion.bg> <Pine.GSO.4.21.0202111901530.5924-100000@apache.metrocom.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--gMR3gsNFwZpnI/Ts
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Feb 11, 2002 at 07:04:15PM +0300, Varshavchick Alexander wrote:
> It's proftpd with mysql module. The passwords in the database are
> des-encrypted, and in the line
>=20
>   if (!strcmp((char *) crypt(c_clear, c_hash), c_hash))
>     success =3D 1;
>=20
> it compares des- and md5- strings and fails because of it...

Hmm ok then, maybe the advice that I gave you was wrong.
If the password hashes are in MD5 format, then crypt(3) should
use MD5; that is, you should tell it to.  Try to explicitly set
crypt_default =3D md5 in /etc/auth.conf and see if that works.

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
When you are not looking at it, this sentence is in Spanish.

--gMR3gsNFwZpnI/Ts
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAjxn7aQACgkQ7Ri2jRYZRVPB8gCgnzsoLyjwkiaTsFkN2WAZOi+e
+P4AnjCK7UpBx+pErnOVrrSTYNHFDLHx
=ixy3
-----END PGP SIGNATURE-----

--gMR3gsNFwZpnI/Ts--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020211181324.E30217>