Skip to content

Commit

Permalink
Merge branch 'master' of github.com:skylime/mi-core-kumquat
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Sep 29, 2014
2 parents adba93d + eb9cbec commit d5ec9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions copy/tmp/proftpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ SQLAuthenticate users

# MySQL queries
# username, passwd, uid, gid, homedir, shell
SQLNamedQuery get-user-by-name SELECT "DISTINCT ftp.name, ftp.password, 847 as uid, 847 as gid, IF(ftp.vhost_id is Null, '/var/www', 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) OR ftp.vhost_id is NULL) 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"
SQLNamedQuery get-user-by-name SELECT "DISTINCT ftp.name, ftp.password, WWW_UID as uid, WWW_GID as gid, IF(ftp.vhost_id is Null, '/var/www', 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) OR ftp.vhost_id is NULL) AND ftp.name = '%U'"
SQLNamedQuery get-user-by-id SELECT "'www' as name, WWW_UID as uid, WWW_GID as gid, '/var/www' as homedir, '/bin/false' as shell"
SQLUserInfo custom:/get-user-by-name/get-user-by-id

# Default MySQL / UID values
Expand Down

0 comments on commit d5ec9d4

Please sign in to comment.