Current time: 05-03-2024, 08:55 PM Hello There, Guest! (LoginRegister)


Post Reply 
[solved] debian 5 can not log in to proftpd
Author Message
motokochan Offline
Member
***

Posts: 274
Joined: Jul 2008
Reputation: 1
Post: #4
RE: debian 5 can not log in to proftpd
ProFTPd has no problem seeing the database, the problem stems from the fact that the passwords are being saved as salted md5, but ProFTPd is expecting crypt() output. I'm working on the same issue here, and will report back with a workaround or solution as soon as I can get it working.
Quick and Dirty Fix:

Edit /var/www/ispcp/gui/include/calc-functions.php

Search for "generate_rand_salt"

Edit:
Code:
if (CRYPT_BLOWFISH == 2) {
                $length = 13;
                $pre    = '$2$';
        } elseif (CRYPT_MD5 == 1) {
                $length = 9;
                $pre    = '$1$';
        } elseif (CRYPT_EXT_DES == 1) {
                $length = 9;
                $pre    = '';

To:
Code:
/*
        if (CRYPT_BLOWFISH == 2) {
                $length = 13;
                $pre    = '$2$';
        } elseif (CRYPT_MD5 == 1) {
                $length = 9;
                $pre    = '$1$';
        } else*/
        if (CRYPT_EXT_DES == 1) {
                $length = 9;
                $pre    = '';

This disables MD5 and Blowfish when making passwords for FTP, possibly for other accounts as well. I have not tested this completely.
(This post was last modified: 11-25-2009 07:00 AM by motokochan.)
11-25-2009 06:04 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: debian 5 can not log in to proftpd - motokochan - 11-25-2009 06:04 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)