Date: Tue, 12 Feb 2002 13:44:51 +0300 (MSK) From: Varshavchick Alexander <alex@metrocom.ru> To: Peter Pentchev <roam@ringlet.net> Cc: Miguel Mendez <flynn@energyhq.homeip.net>, questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: crypt function - solution! Message-ID: <Pine.GSO.4.21.0202121336160.23165-100000@apache.metrocom.ru> In-Reply-To: <20020211181324.E30217@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <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 > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0202121336160.23165-100000>