From 67510adb9e0e354d0d16564a5156e3167bc28f8b Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Tue, 30 May 2023 16:47:03 +0200 Subject: [PATCH] [Dovecot] remove pass return in Dovecot lua auth --- data/Dockerfiles/dovecot/docker-entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/Dockerfiles/dovecot/docker-entrypoint.sh b/data/Dockerfiles/dovecot/docker-entrypoint.sh index 05b552e9..b2633c27 100755 --- a/data/Dockerfiles/dovecot/docker-entrypoint.sh +++ b/data/Dockerfiles/dovecot/docker-entrypoint.sh @@ -159,7 +159,7 @@ function auth_password_verify(req, pass) VALUES ("%s", 0, "%s", "%s")]], con:escape(req.service), con:escape(req.user), con:escape(req.real_rip))) cur:close() con:close() - return dovecot.auth.PASSDB_RESULT_OK, "password=pass" + return dovecot.auth.PASSDB_RESULT_OK, "" end row = cur:fetch (row, "a") end @@ -180,13 +180,13 @@ function auth_password_verify(req, pass) if tostring(req.real_rip) == "__IPV4_SOGO__" then cur:close() con:close() - return dovecot.auth.PASSDB_RESULT_OK, "password=pass" + return dovecot.auth.PASSDB_RESULT_OK, "" elseif row.has_prot_access == "1" then con:execute(string.format([[REPLACE INTO sasl_log (service, app_password, username, real_rip) VALUES ("%s", %d, "%s", "%s")]], con:escape(req.service), row.id, con:escape(req.user), con:escape(req.real_rip))) cur:close() con:close() - return dovecot.auth.PASSDB_RESULT_OK, "password=pass" + return dovecot.auth.PASSDB_RESULT_OK, "" end end row = cur:fetch (row, "a")