add lua app password script

This commit is contained in:
Sebastian Hugentobler 2018-02-27 13:56:32 +01:00
parent 044dc68da6
commit 4aa32aaa99
4 changed files with 64 additions and 3 deletions

View file

@ -3,6 +3,11 @@ passdb {
args = /etc/dovecot/dovecot-ldap.conf.ext
}
passdb {
driver = lua
args = file=/etc/dovecot/app-password-lookup.lua
}
userdb {
driver = static
args = uid=vmail gid=vmail home=/var/lib/vmail/mail/%d/%n

View file

@ -1,4 +1,4 @@
uris = {{getenv "LDAP_URI"}}
uris = ldap://{{getenv "LDAP_URI"}}
dn = {{getenv "LDAP_BIND_DN"}}
dnpass = {{getenv "LDAP_BIND_PASSWORD"}}
tls = {{getenv "LDAP_USE_TLS" "yes"}}