dovecot: enable authentication cache

This commit is contained in:
link2xt
2023-10-15 19:54:29 +00:00
parent 9b438a7a96
commit 862b09d268
3 changed files with 5 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ def handle_dovecot_request(msg, db):
if short_command == "L": # LOOKUP
parts = msg[1:].split("\t")
keyname, user = parts[:2]
namespace, type, arg = keyname.split("/", 3)
namespace, type, *args = keyname.split("/")
reply_command = "F"
res = ""
if namespace == "shared":
@@ -70,7 +70,7 @@ def handle_dovecot_request(msg, db):
else:
reply_command = "N"
elif type == "passdb":
res = lookup_passdb(db, user, password=arg)
res = lookup_passdb(db, user, password=args[0])
if res:
reply_command = "O"
else: