From owner-freebsd-hackers Tue Feb 12 3:16: 5 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from apache.metrocom.ru (www.metrocom.ru [195.5.128.139]) by hub.freebsd.org (Postfix) with ESMTP id 14F5737B41C; Tue, 12 Feb 2002 03:15:58 -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 g1CAipuo018442; Tue, 12 Feb 2002 13:45:02 +0300 (MSK) Date: Tue, 12 Feb 2002 13:44:51 +0300 (MSK) From: Varshavchick Alexander To: Peter Pentchev Cc: Miguel Mendez , questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: crypt function - solution! In-Reply-To: <20020211181324.E30217@straylight.oblivion.bg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi guys, Here followes how the problem was solved. Before the system upgrade to 4.5, there was no separate /usr/lib/libcrypt.so.2 file, it was symlinked to libdescrypt.so.2, and making the things the same way solved it! Playing with /etc/auth.conf didn't help. To be more precise, symlinking libcrypt.so.2 on a running system cannot be done, so what I did was copying /usr/lib/libedscrypt.so.2 to a temporary directory and running command install -c -s -o root -g wheel -m 444 -fschg libcrypt.so.2 /usr/lib And beside this, the following symlinks were needed: /usr/lib/libcrypt.a -> libdescrypt.a /usr/lib/libcrypt.so -> libdescrypt.so They could be done by the ordinary way. If anybody have comments on the subject it's interesting to hear them, and my big thanks to all who helped solving this issue. 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:13:24 +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 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 > > > > if (!strcmp((char *) crypt(c_clear, c_hash), c_hash)) > > success = 1; > > > > 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 = md5 in /etc/auth.conf and see if that works. > > 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 > When you are not looking at it, this sentence is in Spanish. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message