equal
deleted
inserted
replaced
17 local require_provisioning = module:get_option("cyrus_require_provisioning") or false; |
17 local require_provisioning = module:get_option("cyrus_require_provisioning") or false; |
18 local host_fqdn = module:get_option("cyrus_server_fqdn"); |
18 local host_fqdn = module:get_option("cyrus_server_fqdn"); |
19 |
19 |
20 prosody.unlock_globals(); --FIXME: Figure out why this is needed and |
20 prosody.unlock_globals(); --FIXME: Figure out why this is needed and |
21 -- why cyrussasl isn't caught by the sandbox |
21 -- why cyrussasl isn't caught by the sandbox |
22 local cyrus_new = require "util.sasl_cyrus".new; |
22 local cyrus_new = module:require "sasl_cyrus".new; |
23 prosody.lock_globals(); |
23 prosody.lock_globals(); |
24 local new_sasl = function(realm) |
24 local new_sasl = function(realm) |
25 return cyrus_new( |
25 return cyrus_new( |
26 cyrus_service_realm or realm, |
26 cyrus_service_realm or realm, |
27 cyrus_service_name or "xmpp", |
27 cyrus_service_name or "xmpp", |