Comparison

plugins/mod_saslauth.lua @ 2724:3fcf1048a896

mod_saslauth: Add FIXME to remind myself to fix this as soon as I have time
author Matthew Wild <mwild1@gmail.com>
date Mon, 01 Mar 2010 16:23:26 +0000
parent 2721:cf97b85c27b5
child 2894:066c199135d5
comparison
equal deleted inserted replaced
2722:2781d063afa0 2724:3fcf1048a896
34 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind'; 34 local xmlns_bind ='urn:ietf:params:xml:ns:xmpp-bind';
35 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; 35 local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas';
36 36
37 local new_sasl; 37 local new_sasl;
38 if sasl_backend == "cyrus" then 38 if sasl_backend == "cyrus" then
39 prosody.unlock_globals(); 39 prosody.unlock_globals(); --FIXME: Figure out why this is needed and
40 -- why cyrussasl isn't caught by the sandbox
40 local ok, cyrus = pcall(require, "util.sasl_cyrus"); 41 local ok, cyrus = pcall(require, "util.sasl_cyrus");
41 prosody.lock_globals(); 42 prosody.lock_globals();
42 if ok then 43 if ok then
43 local cyrus_new = cyrus.new; 44 local cyrus_new = cyrus.new;
44 new_sasl = function(realm) 45 new_sasl = function(realm)