--- a/core/modulemanager.lua Sat Mar 22 14:53:17 2014 +0100
+++ b/core/modulemanager.lua Tue Mar 25 19:16:38 2014 +0100
@@ -30,7 +30,7 @@
end
local autoload_modules = {prosody.platform, "presence", "message", "iq", "offline", "c2s", "s2s"};
-local component_inheritable_modules = {"tls", "dialback", "iq", "s2s"};
+local component_inheritable_modules = {"tls", "saslauth", "dialback", "iq", "s2s"};
-- We need this to let modules access the real global namespace
local _G = _G;
--- a/plugins/mod_saslauth.lua Sat Mar 22 14:53:17 2014 +0100
+++ b/plugins/mod_saslauth.lua Tue Mar 25 19:16:38 2014 +0100
@@ -197,7 +197,7 @@
return s2s_external_auth(session, stanza)
end
- if session.type ~= "c2s_unauthed" then return; end
+ if session.type ~= "c2s_unauthed" or module:get_host_type() ~= "local" then return; end
if session.sasl_handler and session.sasl_handler.selected then
session.sasl_handler = nil; -- allow starting a new SASL negotiation before completing an old one
--- a/prosodyctl Sat Mar 22 14:53:17 2014 +0100
+++ b/prosodyctl Tue Mar 25 19:16:38 2014 +0100
@@ -687,7 +687,12 @@
conf.distinguished_name[k] = nv ~= "." and nv or nil;
end
end
- local conf_file = io.open(conf_filename, "w");
+ local conf_file, err = io.open(conf_filename, "w");
+ if not conf_file then
+ show_warning("Could not open OpenSSL config file for writing");
+ show_warning(err);
+ os.exit(1);
+ end
conf_file:write(conf:serialize());
conf_file:close();
print("");