comparison mod_auth_cyrus/mod_auth_cyrus.lua @ 4927:b8366e31c829

mod_auth_cyrus: Adjust module import to work with repo clone - Fix #1744 The module import was made to work with the plugin installer, but was not compatible with the old method of cloning the whole repo
author Kim Alvefur <zash@zash.se>
date Sun, 17 Apr 2022 12:49:06 +0200
parents 099dcdb732b1
children
comparison
equal deleted inserted replaced
4926:404a22d52376 4927:b8366e31c829
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",