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
authorMatthew Wild <mwild1@gmail.com>
Thu, 26 Sep 2013 18:30:46 +0100
changeset 1201 744af76b7324
parent 1200 34216cdffda6
child 1202 2cce28fe806b
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
mod_auth_imap/auth_imap/mod_auth_imap.lua
--- a/mod_auth_imap/auth_imap/mod_auth_imap.lua	Thu Sep 26 18:14:45 2013 +0100
+++ b/mod_auth_imap/auth_imap/mod_auth_imap.lua	Thu Sep 26 18:30:46 2013 +0100
@@ -8,9 +8,8 @@
 local imap_host = module:get_option_string("imap_auth_host", "localhost");
 local imap_port = module:get_option_number("imap_auth_port");
 
-
-local imap_service_realm = module:get_option("imap_service_realm");
-local imap_service_name = module:get_option("imap_service_name");
+local imap_service_realm = module:get_option_string("imap_auth_realm", module_get_option("sasl_realm"));
+local imap_service_name = module:get_option_string("imap_auth_service_name");
 local append_host = module:get_option_boolean("auth_append_host");
 
 local verify_certificate = module:get_option_boolean("auth_imap_verify_certificate", true);