Diff

plugins/mod_saslauth.lua @ 2997:6ccaefea80ec

Merge with tip.
author Tobias Markmann <tm@ayena.de>
date Fri, 12 Mar 2010 18:41:05 +0100
parent 2724:3fcf1048a896
child 2894:066c199135d5
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Fri Mar 12 18:37:51 2010 +0100
+++ b/plugins/mod_saslauth.lua	Fri Mar 12 18:41:05 2010 +0100
@@ -36,7 +36,10 @@
 
 local new_sasl;
 if sasl_backend == "cyrus" then
+	prosody.unlock_globals(); --FIXME: Figure out why this is needed and
+	                          -- why cyrussasl isn't caught by the sandbox
 	local ok, cyrus = pcall(require, "util.sasl_cyrus");
+	prosody.lock_globals();
 	if ok then
 		local cyrus_new = cyrus.new;
 		new_sasl = function(realm)