Software /
code /
prosody-modules
Comparison
mod_net_dovecotauth/mod_net_dovecotauth.lua @ 2457:17539a5d73f4
mod_net_dovecotauth: Import util.pposix [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 22 Jan 2017 04:42:55 +0100 |
parent | 2456:f3fc2b672df3 |
child | 2458:20f9d7150777 |
comparison
equal
deleted
inserted
replaced
2456:f3fc2b672df3 | 2457:17539a5d73f4 |
---|---|
13 -- Imports | 13 -- Imports |
14 local new_sasl = require "core.usermanager".get_sasl_handler; | 14 local new_sasl = require "core.usermanager".get_sasl_handler; |
15 local user_exists = require "core.usermanager".user_exists; | 15 local user_exists = require "core.usermanager".user_exists; |
16 local base64 = require"util.encodings".base64; | 16 local base64 = require"util.encodings".base64; |
17 local dump = require"util.serialization".serialize; | 17 local dump = require"util.serialization".serialize; |
18 local pposix = require "util.pposix"; | |
18 | 19 |
19 -- Config | 20 -- Config |
20 local default_vhost = module:get_option_string("dovecotauth_host", (next(hosts))); -- TODO Is there a better solution? | 21 local default_vhost = module:get_option_string("dovecotauth_host", (next(hosts))); -- TODO Is there a better solution? |
21 local allow_master = module:get_option_boolean("dovecotauth_allow_master", false); | 22 local allow_master = module:get_option_boolean("dovecotauth_allow_master", false); |
22 | 23 |