aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-15 23:38:29 +0200
committerKim Alvefur <zash@zash.se>2019-10-15 23:38:29 +0200
commit7dbc2e2ac3ae5d56c7b3f7f3b6713e9cb2558ee0 (patch)
treeac48a11efa240f3a424e70d363d060dd87deaf7b /plugins/mod_saslauth.lua
parent6ebae609caf83908288ac8c920d3c55a78f99214 (diff)
downloadprosody-7dbc2e2ac3ae5d56c7b3f7f3b6713e9cb2558ee0.tar.gz
prosody-7dbc2e2ac3ae5d56c7b3f7f3b6713e9cb2558ee0.zip
mod_saslauth: Demote "no SASL mechanisms" error back to warning
This gets printed before TLS if c2s_require_encryption = false, in which case it is just annoying.
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index be57e8d8..9e9091d3 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -295,20 +295,20 @@ module:hook("stream-features", function(event)
local authmod = module:get_option_string("authentication", "internal_plain");
if available_mechanisms:empty() then
- log("error", "No available SASL mechanisms, verify that the configured authentication module '%s' is loaded and configured correctly", authmod);
+ log("warn", "No available SASL mechanisms, verify that the configured authentication module '%s' is loaded and configured correctly", authmod);
return;
end
if not origin.secure and not available_insecure:empty() then
if not available_disabled:empty() then
- log("error", "All SASL mechanisms provided by authentication module '%s' are forbidden on insecure connections (%s) or disabled (%s)",
+ log("warn", "All SASL mechanisms provided by authentication module '%s' are forbidden on insecure connections (%s) or disabled (%s)",
authmod, available_insecure, available_disabled);
else
- log("error", "All SASL mechanisms provided by authentication module '%s' are forbidden on insecure connections (%s)",
+ log("warn", "All SASL mechanisms provided by authentication module '%s' are forbidden on insecure connections (%s)",
authmod, available_insecure);
end
elseif not available_disabled:empty() then
- log("error", "All SASL mechanisms provided by authentication module '%s' are disabled (%s)",
+ log("warn", "All SASL mechanisms provided by authentication module '%s' are disabled (%s)",
authmod, available_disabled);
end