proftpd-mysql-1.2.10-27ubuntu3 has stopped authenticating with mysql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dapper Backports |
Fix Released
|
Undecided
|
Unassigned | ||
proftpd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: proftpd-mysql
Hi!
I have configured mysql and proftpd-
MySql version: >=4.1 (including 5 and upper).
Log from sql-mod (invalid session):
*******
Sep 07 16:58:03 mod_sql/4.11[5779]: backend module 'mod_sql_
Sep 07 16:58:03 mod_sql/4.11[5779]: backend api 'mod_sql_api_v1'
Sep 07 16:58:03 mod_sql/4.11[5779]: >>> sql_getconf
Sep 07 16:58:03 mod_sql/4.11[5779]: entering mysql cmd_defineconne
Sep 07 16:58:03 mod_sql/4.11[5779]: name: 'default'
Sep 07 16:58:03 mod_sql/4.11[5779]: user: 'proftpd'
Sep 07 16:58:03 mod_sql/4.11[5779]: host: 'localhost'
Sep 07 16:58:03 mod_sql/4.11[5779]: db: 'proftpd'
Sep 07 16:58:03 mod_sql/4.11[5779]: port: '3306'
Sep 07 16:58:03 mod_sql/4.11[5779]: ttl: '0'
Sep 07 16:58:03 mod_sql/4.11[5779]: exiting mysql cmd_defineconne
Sep 07 16:58:03 mod_sql/4.11[5779]: entering mysql cmd_open
Sep 07 16:58:03 mod_sql/4.11[5779]: connection 'default' opened
Sep 07 16:58:03 mod_sql/4.11[5779]: connection 'default' count is now 1
Sep 07 16:58:03 mod_sql/4.11[5779]: exiting mysql cmd_open
Sep 07 16:58:03 mod_sql/4.11[5779]: backend successfully connected.
Sep 07 16:58:03 mod_sql/4.11[5779]: mod_sql status : on
Sep 07 16:58:03 mod_sql/4.11[5779]: negative_cache : off
Sep 07 16:58:03 mod_sql/4.11[5779]: authenticate : users groups
Sep 07 16:58:03 mod_sql/4.11[5779]: usertable : users
Sep 07 16:58:03 mod_sql/4.11[5779]: userid field : userid
Sep 07 16:58:03 mod_sql/4.11[5779]: password field : passwd
Sep 07 16:58:03 mod_sql/4.11[5779]: uid field : uid
Sep 07 16:58:03 mod_sql/4.11[5779]: gid field : gid
Sep 07 16:58:03 mod_sql/4.11[5779]: homedir field : homedir
Sep 07 16:58:03 mod_sql/4.11[5779]: shell field : shell
Sep 07 16:58:03 mod_sql/4.11[5779]: homedirondemand : false
Sep 07 16:58:03 mod_sql/4.11[5779]: group table : groups
Sep 07 16:58:03 mod_sql/4.11[5779]: groupname field : groupid
Sep 07 16:58:03 mod_sql/4.11[5779]: grp gid field : gid
Sep 07 16:58:03 mod_sql/4.11[5779]: grp members field : members
Sep 07 16:58:03 mod_sql/4.11[5779]: SQLMinUserUID : 999
Sep 07 16:58:03 mod_sql/4.11[5779]: SQLMinUserGID : 999
Sep 07 16:58:03 mod_sql/4.11[5779]: SQLDefaultUID : 65533
Sep 07 16:58:03 mod_sql/4.11[5779]: SQLDefaultGID : 65533
Sep 07 16:58:03 mod_sql/4.11[5779]: <<< sql_getconf
Sep 07 16:58:05 mod_sql/4.11[5779]: >>> cmd_getgroups
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_escapestring
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_escapestring
Sep 07 16:58:05 mod_sql/4.11[5779]: cache miss for user 'yacek'
Sep 07 16:58:05 mod_sql/4.11[5779]: : entering mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 2
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: query "SELECT userid, passwd, uid, gid, homedir, shell FROM users WHERE (userid='yacek') LIMIT 1"
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 1
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: cache miss for user 'yacek'
Sep 07 16:58:05 mod_sql/4.11[5779]: user 'yacek' cached
Sep 07 16:58:05 mod_sql/4.11[5779]: + pwd.pw_name : yacek
Sep 07 16:58:05 mod_sql/4.11[5779]: + pwd.pw_uid : 1006
Sep 07 16:58:05 mod_sql/4.11[5779]: + pwd.pw_gid : 10000
Sep 07 16:58:05 mod_sql/4.11[5779]: + pwd.pw_dir : /home/ftp/yacek
Sep 07 16:58:05 mod_sql/4.11[5779]: + pwd.pw_shell : /bin/bash
Sep 07 16:58:05 mod_sql/4.11[5779]: cache miss for gid '10000'
Sep 07 16:58:05 mod_sql/4.11[5779]: : entering mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 2
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: query "SELECT groupid FROM groups WHERE (gid = 10000) LIMIT 1"
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 1
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: : entering mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 2
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: query "SELECT groupid, gid, members FROM groups WHERE (groupid = 'vgroup')"
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 1
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: cache miss for group 'vgroup'
Sep 07 16:58:05 mod_sql/4.11[5779]: group 'vgroup' cached
Sep 07 16:58:05 mod_sql/4.11[5779]: + grp.gr_name : vgroup
Sep 07 16:58:05 mod_sql/4.11[5779]: + grp.gr_gid : 10000
Sep 07 16:58:05 mod_sql/4.11[5779]: + grp.gr_mem :
Sep 07 16:58:05 mod_sql/4.11[5779]: : entering mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 2
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_open
Sep 07 16:58:05 mod_sql/4.11[5779]: query "SELECT groupid, gid, members FROM groups WHERE (members = 'yacek' OR members LIKE 'yacek,%' OR members LIKE '%,yacek' OR members LIKE '%,yacek,%')"
Sep 07 16:58:05 mod_sql/4.11[5779]: entering mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: connection 'default' count is now 1
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_close
Sep 07 16:58:05 mod_sql/4.11[5779]: exiting mysql cmd_select
Sep 07 16:58:05 mod_sql/4.11[5779]: <<< cmd_getgroups
Sep 07 16:58:07 mod_sql/4.11[5779]: >>> cmd_getgroups
Sep 07 16:58:07 mod_sql/4.11[5779]: cache hit for user 'yacek'
Sep 07 16:58:07 mod_sql/4.11[5779]: cache hit for group vgroup
Sep 07 16:58:07 mod_sql/4.11[5779]: : entering mysql cmd_select
Sep 07 16:58:07 mod_sql/4.11[5779]: entering mysql cmd_open
Sep 07 16:58:07 mod_sql/4.11[5779]: connection 'default' count is now 2
Sep 07 16:58:07 mod_sql/4.11[5779]: exiting mysql cmd_open
Sep 07 16:58:07 mod_sql/4.11[5779]: query "SELECT groupid, gid, members FROM groups WHERE (members = 'yacek' OR members LIKE 'yacek,%' OR members LIKE '%,yacek' OR members LIKE '%,yacek,%')"
Sep 07 16:58:07 mod_sql/4.11[5779]: entering mysql cmd_close
Sep 07 16:58:07 mod_sql/4.11[5779]: connection 'default' count is now 1
Sep 07 16:58:07 mod_sql/4.11[5779]: exiting mysql cmd_close
Sep 07 16:58:07 mod_sql/4.11[5779]: exiting mysql cmd_select
Sep 07 16:58:07 mod_sql/4.11[5779]: <<< cmd_getgroups
Sep 07 16:58:07 mod_sql/4.11[5779]: >>> cmd_getpwnam
Sep 07 16:58:07 mod_sql/4.11[5779]: cache hit for user 'yacek'
Sep 07 16:58:07 mod_sql/4.11[5779]: <<< cmd_getpwnam
Sep 07 16:58:07 mod_sql/4.11[5779]: >>> cmd_gid2name
Sep 07 16:58:07 mod_sql/4.11[5779]: cache hit for group vgroup
Sep 07 16:58:07 mod_sql/4.11[5779]: <<< cmd_gid2name
Sep 07 16:58:07 mod_sql/4.11[5779]: >>> cmd_auth
Sep 07 16:58:07 mod_sql/4.11[5779]: entering mysql cmd_escapestring
Sep 07 16:58:07 mod_sql/4.11[5779]: exiting mysql cmd_escapestring
Sep 07 16:58:07 mod_sql/4.11[5779]: cache hit for user 'yacek'
Sep 07 16:58:07 mod_sql/4.11[5779]: >>> cmd_check
Sep 07 16:58:07 mod_sql/4.11[5779]: checking auth_type Crypt
Sep 07 16:58:07 mod_sql/4.11[5779]: checking auth_type Backend
Sep 07 16:58:07 mod_sql/4.11[5779]: entering mysql cmd_checkauth
Sep 07 16:58:07 mod_sql/4.11[5779]: exiting mysql cmd_checkauth
Sep 07 16:58:07 mod_sql/4.11[5779]: <<< cmd_check
Sep 07 16:58:07 mod_sql/4.11[5779]: <<< cmd_auth
Sep 07 16:58:12 mod_sql/4.11[5779]: entering mysql cmd_exit
Sep 07 16:58:12 mod_sql/4.11[5779]: entering mysql cmd_close
Sep 07 16:58:12 mod_sql/4.11[5779]: connection 'default' closed
Sep 07 16:58:12 mod_sql/4.11[5779]: connection 'default' count is now 0
Sep 07 16:58:12 mod_sql/4.11[5779]: exiting mysql cmd_close
Sep 07 16:58:12 mod_sql/4.11[5779]: exiting mysql cmd_exit
*******
Log from proftpd (invalid session):
*******
Sep 07 16:58:03 ubuntu proftpd[5779] localhost (localhost[
Sep 07 16:58:10 ubuntu proftpd[5779] localhost (localhost[
Sep 07 16:58:10 ubuntu proftpd[5779] localhost (localhost[
Sep 07 16:58:12 ubuntu proftpd[5779] localhost (localhost[
*******
Log from proftpd output (proftpd -n -d10):
*******
- dispatching event 'core.module-load' to mod_sql_mysql
- dispatching event 'core.module-load' to mod_sql_mysql
- dispatching event 'core.preparse' to mod_sql
- parsing '/usr/local/
- FS: using system open()
- FS: using system read()
- dispatching directive 'ServerName' to module mod_core
- dispatching directive 'ServerType' to module mod_core
- dispatching directive 'DefaultServer' to module mod_core
- dispatching directive 'Port' to module mod_core
- dispatching directive 'Umask' to module mod_core
- dispatching directive 'MaxInstances' to module mod_core
- dispatching directive 'User' to module mod_core
- dispatching auth request "getpwnam" to module mod_sql
- dispatching auth request "getpwnam" to module mod_auth_file
- dispatching auth request "getpwnam" to module mod_auth_unix
- retrieved UID 65534 for user 'nobody'
- dispatching directive 'Group' to module mod_core
- dispatching auth request "getgrnam" to module mod_sql
- dispatching auth request "getgrnam" to module mod_auth_file
- dispatching auth request "getgrnam" to module mod_auth_unix
- retrieved GID 65534 for group 'nogroup'
- FS: using system read()
- dispatching directive 'AllowOverwrite' to module mod_xfer
- dispatching directive '<Limit>' to module mod_core
- dispatching directive 'DenyAll' to module mod_core
- dispatching directive '</Limit>' to module mod_core
- dispatching directive '<Anonymous>' to module mod_core
- dispatching directive 'User' to module mod_core
- dispatching directive 'Group' to module mod_core
- dispatching directive 'UserAlias' to module mod_auth
- dispatching directive 'MaxClients' to module mod_auth
- dispatching directive 'DisplayLogin' to module mod_core
- dispatching directive 'DisplayFirstChdir' to module mod_core
- dispatching directive '<Limit>' to module mod_core
- dispatching directive 'DenyAll' to module mod_core
- dispatching directive '</Limit>' to module mod_core
- dispatching directive '</Anonymous>' to module mod_core
- FS: using system read()
- FS: using system close()
- attempting to resolve 'localhost' to IPv4 address via DNS
- resolved 'localhost' to IPv4 address 127.0.0.1
localhost -
localhost - Config for ProFTPD Default Installation:
localhost - ~ftp/
localhost - Limit
localhost - DenyAll
localhost - UserName
localhost - GroupName
localhost - UserAlias
localhost - MaxClients
localhost - DisplayLogin
localhost - DisplayFirstChdir
localhost - Umask
localhost - AllowOverwrite
localhost - Limit
localhost - DenyAll
localhost - DefaultServer
localhost - Umask
localhost - UserID
localhost - UserName
localhost - GroupID
localhost - GroupName
localhost - AllowOverwrite
localhost - dispatching event 'core.postparse' to mod_delay
localhost - ROOT PRIVS at mod_delay.c:292
localhost - FS: using system open()
localhost - RELINQUISH PRIVS at mod_delay.c:294
localhost - FS: using system fstat()
localhost - mod_delay/0.5: mapping DelayTable '/usr/local/
localhost - mod_delay/0.5: unmapping DelayTable '/usr/local/
localhost - FS: using system close()
localhost - dispatching auth request "getgroups" to module mod_sql
localhost - dispatching auth request "getgroups" to module mod_auth_file
localhost - dispatching auth request "getgroups" to module mod_auth_unix
localhost - retrieved group ID: 65534
localhost - setting group ID: 65534
localhost - SETUP PRIVS at main.c:2897
localhost - ROOT PRIVS at main.c:1991
localhost - RELINQUISH PRIVS at main.c:1998
localhost - ROOT PRIVS at main.c:2346
localhost - opening scoreboard '/usr/local/
localhost - RELINQUISH PRIVS at main.c:2372
localhost - dispatching event 'core.startup' to mod_core
localhost - ROOT PRIVS at inet.c:323
localhost - RELINQUISH PRIVS at inet.c:381
localhost - ProFTPD 1.3.0 (stable) (built śro wrz 6 21:14:09 CEST 2006) standalone mode STARTUP
localhost - ROOT PRIVS at main.c:2209
localhost - RELINQUISH PRIVS at main.c:2211
localhost - FS: using system lstat()
localhost - ROOT PRIVS at main.c:1176
localhost - RELINQUISH PRIVS at main.c:1180
localhost - no matching vhost found for 83.16.177.26#21, using DefaultServer 'ProFTPD Default Installation'
localhost - FS: using system lstat()
localhost - FS: using system lstat()
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost - scrubbing scoreboard
localhost - ROOT PRIVS at mod_core.c:131
localhost - RELINQUISH PRIVS at mod_core.c:133
localhost - ROOT PRIVS at mod_core.c:161
localhost - RELINQUISH PRIVS at mod_core.c:192
localhost - FS: using system lstat()
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost (xxx.xx.
localhost - FS: using system lstat()
localhost - ProFTPD terminating (signal 2)
localhost - ROOT PRIVS at main.c:1872
localhost - dispatching event 'core.exit' to core
localhost - dispatching event 'core.exit' to mod_delay
localhost - ROOT PRIVS at mod_delay.c:828
localhost - FS: using system open()
localhost - RELINQUISH PRIVS at mod_delay.c:830
localhost - mod_delay/0.5: write-locking DelayTable '/usr/local/
localhost - mod_delay/0.5: mapping DelayTable '/usr/local/
localhost - mod_delay/0.5: unmapping DelayTable '/usr/local/
localhost - mod_delay/0.5: unlocking DelayTable '/usr/local/
localhost - FS: using system write()
localhost - FS: using system close()
localhost - RELINQUISH PRIVS at main.c:1893
localhost - ProFTPD 1.3.0 standalone mode SHUTDOWN
localhost - ROOT PRIVS at main.c:1900
localhost - deleting existing scoreboard '/usr/local/
localhost - RELINQUISH PRIVS at main.c:1902
localhost - no event handlers registered for 'core.exit'
*******
/etc/proftpd.conf:
*******
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
DenyFilter \*.*/
Port 21
MaxInstances 30
User nobody
Group nogroup
Umask 022 022
AllowOverwrite on
SQLConnectInfo proftpd@localhost proftpd password
SQLAuthenticate users groups
SQLAuthTypes Crypt Backend
SQLUserInfo users userid passwd uid gid homedir shell
SQLGroupInfo groups groupname gid members
*****************
Please provide 1.3.0 version of proftpd-mysql. The problem seems to be solved in 1.3.0 version.