Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
proftp no authentification after mysql update [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
semen
n00b
n00b


Joined: 02 Jan 2005
Posts: 29

PostPosted: Thu Jan 31, 2008 7:50 am    Post subject: proftp no authentification after mysql update [solved] Reply with quote

Did yesterday the mysql update to version mysql-5.0.54,

and after words there is no ftp connection possible.

I am using proftp and mysql for authentification.


the messages says:

Jan 31 08:43:07 ajax proftpd[6595]: server (xx.xx.xx.xx[xx.xx.xx.xx]) - FTP session opened.
Jan 31 08:43:07 ajax proftpd[6595]: server (xx.xx.xx.xx[xx.xx.xx.xx]) - USER username (Login failed): No such user found.
Jan 31 08:43:07 ajax proftpd[6595]: server (xx.xx.xx.xx[xx.xx.xx.xx]) - FTP session closed.

the username and connection to mysql is ok, did test it.
And I did not change anything before and after mysql update.

I am using syscp. http://syscp.org/ for domain, email and ftp configuration.

my configuration in proftd.conf is:

MaxInstances 30

# Set the user and group under which the server will run.
#User proftpd
#Group proftpd
User nobody
Group nogroup

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>

<Global>
# CH-Root all users
DefaultRoot ~
# Reject rootlogin (just for security)
RootLogin off
# Noo need to require valid shell, because user is virtual
RequireValidShell off
</Global>

#SQLAuthTypes Crypt Plaintext
SQLAuthTypes Plaintext
SQLAuthenticate users* groups*
SQLConnectInfo syscp@localhost syscp "xxxxx"
SQLUserInfo ftp_users username password uid gid homedir shell
SQLGroupInfo ftp_groups groupname gid members
SQLUserWhereClause "login_enabled = 'Y'"

SQLLog PASS login
SQLNamedQuery login UPDATE "last_login=now(), login_count=login_count+1 where username='%u'" ftp_users

SQLLog RETR download
SQLNamedQuery download UPDATE "down_count=down_count+1, down_bytes=down_bytes+%b where username='%u'" ftp_users

SQLLog STOR upload
SQLNamedQuery upload update "up_count=up_count+1, up_bytes=up_bytes+%b where username='%u'" ftp_users

so what is wrong?
and how to fix.

As I see there the problem seams to be in the authentication to mysql.
So what was changed by the mysql update?

Please help


Last edited by semen on Fri Feb 01, 2008 11:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
-Craig-
Guru
Guru


Joined: 03 Jun 2004
Posts: 333

PostPosted: Fri Feb 01, 2008 10:55 pm    Post subject: Reply with quote

You might have to recompile proftpd. And about the changes in MySQL: Why not read the changelog?
Back to top
View user's profile Send private message
semen
n00b
n00b


Joined: 02 Jan 2005
Posts: 29

PostPosted: Fri Feb 01, 2008 11:07 pm    Post subject: [solved -> switch to pure-ftp ] Reply with quote

did solved the problem by switching to pure-ftp.

see
http://www.syscp.de/wiki/contrib/Pureftp

BTW pure-ftp is more stable in holding the ftp connection and perfomance.
:roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum