diff --git a/copy/tmp/proftpd.conf b/copy/tmp/proftpd.conf index c0274b1..242f759 100644 --- a/copy/tmp/proftpd.conf +++ b/copy/tmp/proftpd.conf @@ -42,7 +42,7 @@ SQLAuthenticate users # MySQL queries # username, passwd, uid, gid, homedir, shell -SQLNamedQuery get-user-by-name SELECT "ftp.name, ftp.password, WWW_UID as uid, WWW_GID as gid, CONCAT('/var/www/', domain.name, '/', ftp.path) as homedir, '/bin/false' as shell FROM ftp_account ftp, kumquat_domain domain WHERE ftp.domain_id = domain.id AND ftp.name = '%U'" +SQLNamedQuery get-user-by-name SELECT "ftp.name, ftp.password, WWW_UID as uid, WWW_GID as gid, CONCAT('/var/www/', vhost.name, '.', domain.name, '/', ftp.path) as homedir, '/bin/false' as shell FROM ftp_account ftp, kumquat_domain domain, web_vhost vhost WHERE ftp.vhost_id = vhost.id AND vhost.domain_id = domain.id AND ftp.name = '%U'" SQLNamedQuery get-user-by-id SELECT "'www' as name, 847 as uid, 847 as gid, '/var/www' as homedir, '/bin/false' as shell" SQLUserInfo custom:/get-user-by-name/get-user-by-id