return proper home dir from userdb
This commit is contained in:
parent
09cf75eccb
commit
659e14a87d
4 changed files with 15 additions and 14 deletions
|
@ -36,7 +36,7 @@ function auth_userdb_lookup(req)
|
|||
end
|
||||
|
||||
if userJson[1].username == req.username then
|
||||
return dovecot.auth.USERDB_RESULT_OK, "uid=vmail gid=vmail home=/var/lib/vmail/mail/%n"
|
||||
return dovecot.auth.USERDB_RESULT_OK, "uid=vmail gid=vmail home=/var/lib/vmail/mail/" .. req.username
|
||||
end
|
||||
|
||||
return dovecot.auth.USERDB_RESULT_USER_UNKNOWN, "no such user"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue