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 <[EMAIL PROTECTED]>
> To: Varshavchick Alexander <[EMAIL PROTECTED]>
> Cc: Miguel Mendez <[EMAIL PROTECTED]>, [EMAIL PROTECTED],
>      [EMAIL PROTECTED]
> 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        [EMAIL PROTECTED]        [EMAIL PROTECTED]
> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to