Current time: 11-23-2024, 06:39 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED]Proftpd Login not possible
Author Message
hvm_pt Offline


Posts: 1
Joined: Nov 2009
Reputation: 0
Post: #8
RE: [SOLVED]Proftpd Login not possible
Hi there!

This is just a post for further reference to anyone that have/had the similar issue I had with ProFTP not accepting the *correct* password, and the replies found in the above posts were of no help at all. :-/

I've just started to use ispCP version 1.0.2 and I also add some issues with it, since I'm using PHP 5.3.
There are small but significant changes in this PHP version that trigger some issues with this version of ispCP, that was programmed for a previous PHP version.
Apart from E_DEPRECATED warnings all over the place and the lack of the new mandatory (?) date_default_timezone_set() function that got me hacking the code a bit, the most disturbing issue I had was with FTP not accepting the username's password.

After several days of hair pulling troubleshooting :-) I've found that, if I changed the password directly through mysql queries, I was able to login.
So, doing this:

Code:
$ mysql ispcp -u root -p
Enter password: ******
(...)
mysql> update ftp_users set passwd=encrypt('password1234') where userid='user1@domain1.com';

I was able to login in FTP with the specified password!
But not if I changed the password from ispCP interface.
So it was a crypt issue somewhere!

Then, after an hard search, I found out about this two trouble tickets.

http://isp-control.net/ispcp/ticket/1876
http://isp-control.net/ispcp/ticket/1897

The solution is:

edit the file ispcp/gui/include/calc-functions.php and in the function

PHP Code:
function crypt_user_pass_with_salt($data) {

    
$res crypt($datagenerate_rand_salt()); return $res;



correct the "crypt" line like below:

PHP Code:
function crypt_user_pass_with_salt($data) {

    
$res crypt($data); return $res;




This one was a nasty one! Very hard to find what was happening...so here's my contribution.

Cheers,
Hugo

P.S.: First post! :-)
(This post was last modified: 11-25-2009 11:05 PM by hvm_pt.)
11-25-2009 11:05 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Proftpd Login not possible - BeNe - 11-16-2009, 11:21 PM
RE: Proftpd Login not possible - anarking - 11-17-2009, 08:51 AM
RE: Proftpd Login not possible - BeNe - 11-17-2009, 04:50 PM
RE: [SOLVED]Proftpd Login not possible - hvm_pt - 11-25-2009 11:05 PM

Forum Jump:


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