use lua lookup for userdb
This commit is contained in:
parent
72e4c437a8
commit
576f19df7e
3 changed files with 52 additions and 2 deletions
|
@ -10,7 +10,12 @@ passdb {
|
|||
args = /etc/dovecot/dovecot-oauth2.plain.conf.ext
|
||||
}
|
||||
|
||||
#userdb {
|
||||
# driver = static
|
||||
# args = uid=vmail gid=vmail username_format=%n home=/var/lib/vmail/mail/%n
|
||||
#}
|
||||
|
||||
userdb {
|
||||
driver = static
|
||||
args = uid=vmail gid=vmail username_format=%n home=/var/lib/vmail/mail/%n
|
||||
driver = lua
|
||||
args = file=/etc/dovecot/oauth2-userdb-lua blocking=yes
|
||||
}
|
||||
|
|
|
@ -9,3 +9,4 @@ use_grant_password = no
|
|||
pass_attrs = pass=%{oauth2:access_token}
|
||||
debug = yes
|
||||
username_format = %n
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue