comparison mod_auth_imap/auth_imap/mod_auth_imap.lua @ 1201:744af76b7324

mod_auth_imap: Rename imap_service_realm to imap_auth_realm and inherit from sasl_realm, rename imap_service_name to imap_auth_service_name
author Matthew Wild <mwild1@gmail.com>
date Thu, 26 Sep 2013 18:30:46 +0100
parents 34216cdffda6
children 2cce28fe806b
comparison
equal deleted inserted replaced
1200:34216cdffda6 1201:744af76b7324
6 local log = require "util.logger".init("auth_imap"); 6 local log = require "util.logger".init("auth_imap");
7 7
8 local imap_host = module:get_option_string("imap_auth_host", "localhost"); 8 local imap_host = module:get_option_string("imap_auth_host", "localhost");
9 local imap_port = module:get_option_number("imap_auth_port"); 9 local imap_port = module:get_option_number("imap_auth_port");
10 10
11 11 local imap_service_realm = module:get_option_string("imap_auth_realm", module_get_option("sasl_realm"));
12 local imap_service_realm = module:get_option("imap_service_realm"); 12 local imap_service_name = module:get_option_string("imap_auth_service_name");
13 local imap_service_name = module:get_option("imap_service_name");
14 local append_host = module:get_option_boolean("auth_append_host"); 13 local append_host = module:get_option_boolean("auth_append_host");
15 14
16 local verify_certificate = module:get_option_boolean("auth_imap_verify_certificate", true); 15 local verify_certificate = module:get_option_boolean("auth_imap_verify_certificate", true);
17 local ssl_params = module:get_option("auth_imap_ssl", { 16 local ssl_params = module:get_option("auth_imap_ssl", {
18 mode = "client", protocol = "sslv23"; 17 mode = "client", protocol = "sslv23";