ispCP - Board - Support
ftp passwd= *0 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: ftp passwd= *0 (/thread-5019.html)

Pages: 1 2


RE: ftp passwd= *0 - saturnsuper - 12-08-2008 02:43 AM

I set
if (CRYPT_BLOWFISH == 1) {
$length = 16;
$pre = '$2$';

But problem didn't resolve!


RE: ftp passwd= *0 - joximu - 12-08-2008 05:39 PM

Hi

I don't know your system. Obviously there's something wrong, either a apckage is missing or your system does not like crypting or something else.

You have to be a little bit more active to solve the problem.

Maybe you try to find the bug by exercising with the php-crypt command.
eg. as in the php documentation:
Code:
<?php
if (CRYPT_STD_DES == 1) {
    echo 'Standard DES: ' . crypt('rasmuslerdorf', 'rl') . "\n";
}

if (CRYPT_EXT_DES == 1) {
    echo 'Extended DES: ' . crypt('rasmuslerdorf', '_J9..rasm') . "\n";
}

if (CRYPT_MD5 == 1) {
    echo 'MD5:          ' . crypt('rasmuslerdorf', '$1$rasmusle$') . "\n";
}

if (CRYPT_BLOWFISH == 1) {
    echo 'Blowfish:     ' . crypt('rasmuslerdorf', '$2a$07$rasmuslerd...........$') . "\n";
}
?>

and compare the output with the one in the docu:
http://ch2.php.net/manual/en/function.crypt.php

/J


RE: ftp passwd= *0 - rurk - 10-19-2009 10:54 PM

It takes place because there is an error in a code. In the file of calc-functions.php which is in gui/include/ line 191
PHP Code:
$salt .= chr(mt_rand($min$max)); 
change to
PHP Code:
$salt chr(mt_rand($min$max)); 



RE: ftp passwd= *0 - joximu - 10-19-2009 11:56 PM

ah - you mean here?

Code:
for ($i = 0; $i < $length; $i++) {
        $salt .= chr(mt_rand($min, $max));
    }

I would not say that the ".=" is wrong - you want to add characters to the string - not overwrite...

btw. it's line 119 not 191... :-)

/J


RE: ftp passwd= *0 - rurk - 10-20-2009 12:27 AM

(10-19-2009 11:56 PM)joximu Wrote:  btw. it's line 119 not 191... :-)

/J

And indeed 119, am sorry! I had the same problem in a version 1.0.0 it and remained in a version 1.0.2. In 1.0.0 I rewrote a code that it is possible it was to work even with Plaintext. After an update to 1.0.2 a problem appeared again, and only since cleaned a point all decided! I do not talk that it so but for me so it works(it is tested on a version 1.0.0)


RE: ftp passwd= *0 - joximu - 10-20-2009 12:31 AM

Most of the problems were because of blowfish.

The block sometimes need to be like this:

if (CRYPT_BLOWFISH == 2) {
$length = 13;
$pre = '$2a$';
}

-> $2a$ instead of $2$

/J


RE: ftp passwd= *0 - rurk - 10-20-2009 12:56 AM

Possibly, but I look on Mysql. When a point costs that in the field a password stands ":", when take away a point the field is filled characters.