Changeset

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 1200:34216cdffda6
children 1202:2cce28fe806b
files mod_auth_imap/auth_imap/mod_auth_imap.lua
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);