Software /
code /
prosody-modules
Comparison
mod_auth_imap/auth_imap/mod_auth_imap.lua @ 1198:b21bd39c8a12
mod_auth_imap: Leave port nil if not specified in the config, so we can auto-detect based on whether we use SSL
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 26 Sep 2013 18:11:44 +0100 |
parent | 1196:f45ca6edc159 |
child | 1200:34216cdffda6 |
comparison
equal
deleted
inserted
replaced
1197:25641c4cab36 | 1198:b21bd39c8a12 |
---|---|
4 | 4 |
5 local name = "IMAP SASL"; | 5 local name = "IMAP SASL"; |
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", 143); | 9 local imap_port = module:get_option_number("imap_auth_port"); |
10 | 10 |
11 | 11 |
12 local imap_service_realm = module:get_option("imap_service_realm"); | 12 local imap_service_realm = module:get_option("imap_service_realm"); |
13 local imap_service_name = module:get_option("imap_service_name"); | 13 local imap_service_name = module:get_option("imap_service_name"); |
14 | 14 |