From owner-freebsd-questions Mon Feb 11 8: 4:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from apache.metrocom.ru (www.metrocom.ru [195.5.128.139]) by hub.freebsd.org (Postfix) with ESMTP id B3FA837B416; Mon, 11 Feb 2002 08:04:25 -0800 (PST) Received: from apache.metrocom.ru (apache.metrocom.ru [195.5.128.150]) by apache.metrocom.ru (8.12.1/8.12.1) with ESMTP id g1BG4Fuo015614; Mon, 11 Feb 2002 19:04:15 +0300 (MSK) Date: Mon, 11 Feb 2002 19:04:15 +0300 (MSK) From: Varshavchick Alexander To: Peter Pentchev Cc: Miguel Mendez , questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: crypt function In-Reply-To: <20020211180016.C30217@straylight.oblivion.bg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 It's proftpd with mysql module. The passwords in the database are des-encrypted, and in the line if (!strcmp((char *) crypt(c_clear, c_hash), c_hash)) success = 1; it compares des- and md5- strings and fails because of it... Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)118-3322, 118-3115(fax) On Mon, 11 Feb 2002, Peter Pentchev wrote: > Date: Mon, 11 Feb 2002 18:00:16 +0200 > From: Peter Pentchev > To: Varshavchick Alexander > Cc: Miguel Mendez , questions@FreeBSD.ORG, > freebsd-hackers@FreeBSD.ORG > Subject: Re: crypt function > > On Mon, Feb 11, 2002 at 06:57:01PM +0300, Varshavchick Alexander wrote: > > Hi again, > > > > now my /etc/auth.conf lookes like > > > > auth_default = des > > crypt_default = des > > auth_list = passwd > > > > > > But nothing seems to have changed, do I need to recompile/reinstall > > something or should it already work by now? Which libraries are using > > /etc/auth.conf file? > > Again, is there some program that is not working? Which one? > How does it fail? > > G'luck, > Peter > > -- > 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 > Do you think anybody has ever had *precisely this thought* before? > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message