ispCP - Board - Support
A password problem about proftpd - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: A password problem about proftpd (/thread-6877.html)



A password problem about proftpd - Landmark - 06-04-2009 05:49 PM

hi!

i successfully installed the ispcp program but there is something wrong with proftpd.

the proftpd can be started but when a user create a ftp user, no matter what password he inputs, in the 'passwd' field of table 'ftp_users' it shows a ':' . and when i clean this field (not 'NULL'),users can log in with a empty password.

i think this is not about proftpd. maybe ispcp's encryption script is not working properly?

do you have any idea about this?

i'm using FreeBSD 7.


RE: A password problem on proftpd - rona - 06-04-2009 10:20 PM

Check the code character , make sure it is utf-8 when you entering the password.


RE: A password problem on proftpd - Landmark - 06-05-2009 12:48 AM

ok i worked out with a stupid method.

i changed proftpd's sqlauthtype to plaintext and edit ftp_add.php and ftp_edit.php to disable the function "crypt_user_pass_with_salt"(simply drag the var out of the function)

it is not safe but a least it works~


RE: A password problem about proftpd - corra - 07-23-2009 07:52 AM

Thanks for the plaintext suggestion Landmark!, I too experienced exactly the same problem (on freebsd 7.2). Stupid fix but at least it works Big Grin


RE: A password problem about proftpd - joximu - 07-23-2009 08:36 PM

Hi BSD users

could you try the following?

in gui/include/calc-functions.php, line 101 ff:
Code:
function generate_rand_salt($min = 46, $max = 126) {
    if (CRYPT_BLOWFISH == 1) {
        $length>= 13;
        $pre<-->= '$2$';
    } elseif (CRYPT_MD5 == 1) {

change line 102 to
Code:
function generate_rand_salt($min = 46, $max = 126) {
    if (CRYPT_BLOWFISH == 10) {
        $length>= 13;
        $pre<-->= '$2$';
    } elseif (CRYPT_MD5 == 1) {

Maybe there's a problem with php/blowfish on bsd - "Blocker" wrote something like this...
(so we just disable the use of blowfish algorythm here)

And then try to give a new password.

/J