mirror of
https://github.com/chatmail/relay.git
synced 2026-05-22 13:58:07 +00:00
this seems to work
This commit is contained in:
@@ -24,13 +24,13 @@ function chatctl_lookup(user)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function get_extra_dovecot_output(res)
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
function auth_password_verify(request, password)
|
function auth_password_verify(request, password)
|
||||||
local res = chatctl_verify(request.user, 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
|
if res.status == "ok" then
|
||||||
local extra = get_extra_dovecot_output(res)
|
local extra = get_extra_dovecot_output(res)
|
||||||
return dovecot.auth.PASSDB_RESULT_OK, 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):
|
def get_user_data(user):
|
||||||
if user == b"link2xt@instant2.testrun.org":
|
if user == b"link2xt@c1.testrun.org":
|
||||||
return dict(
|
return dict(
|
||||||
home="/home/vmail/link2xt",
|
home="/home/vmail/link2xt",
|
||||||
uid="vmail",
|
uid="vmail",
|
||||||
|
|||||||
Reference in New Issue
Block a user