mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
this seems to work
This commit is contained in:
@@ -24,13 +24,13 @@ function chatctl_lookup(user)
|
||||
end
|
||||
|
||||
function get_extra_dovecot_output(res)
|
||||
return {homedir=res.homedir, uid=res.uid, gid=res.gid}
|
||||
return {home=res.home, uid=res.uid, gid=res.gid}
|
||||
end
|
||||
|
||||
|
||||
function auth_password_verify(request, password)
|
||||
local res = chatctl_verify(request.user, password)
|
||||
dovecot.i_debug("auth_password_verify")
|
||||
request:log_error("auth_password_verify "..request.user.." "..password)
|
||||
if res.status == "ok" then
|
||||
local extra = get_extra_dovecot_output(res)
|
||||
return dovecot.auth.PASSDB_RESULT_OK, get_extra_dovecot_output(res)
|
||||
|
||||
@@ -4,7 +4,7 @@ import sys
|
||||
|
||||
|
||||
def get_user_data(user):
|
||||
if user == b"link2xt@instant2.testrun.org":
|
||||
if user == b"link2xt@c1.testrun.org":
|
||||
return dict(
|
||||
home="/home/vmail/link2xt",
|
||||
uid="vmail",
|
||||
|
||||
Reference in New Issue
Block a user