From owner-freebsd-questions Mon Feb 11 8:12:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from straylight.ringlet.net (support.nanolink.com [217.75.134.33]) by hub.freebsd.org (Postfix) with SMTP id AD98437B41D for ; Mon, 11 Feb 2002 08:12:48 -0800 (PST) Received: (qmail 81768 invoked by uid 1000); 11 Feb 2002 16:13:25 -0000 Date: Mon, 11 Feb 2002 18:13:24 +0200 From: Peter Pentchev To: Varshavchick Alexander Cc: Miguel Mendez , questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: crypt function Message-ID: <20020211181324.E30217@straylight.oblivion.bg> Mail-Followup-To: Varshavchick Alexander , Miguel Mendez , questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <20020211180016.C30217@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="gMR3gsNFwZpnI/Ts" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from alex@metrocom.ru on Mon, Feb 11, 2002 at 07:04:15PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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