fix: escape login and password when passed from dovecot to doveauth

This should allow to use / in the password
This commit is contained in:
link2xt
2023-12-21 19:03:31 +00:00
parent be3685519f
commit 81a6f8808b
3 changed files with 38 additions and 4 deletions

View File

@@ -1,5 +1,10 @@
uri = proxy:/run/dovecot/doveauth.socket:auth
iterate_disable = yes
default_pass_scheme = plain
password_key = passdb/%w/%u
user_key = userdb/%u
# %E escapes characters " (double quote), ' (single quote) and \ (backslash) with \ (backslash).
# See <https://doc.dovecot.org/configuration_manual/config_file/config_variables/#modifiers>
# for documentation.
#
# We escape user-provided input and use double quote as a separator.
password_key = passdb/%Ew"%Eu
user_key = userdb/%Eu