aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-24 02:24:48 +0100
committerKim Alvefur <zash@zash.se>2018-11-24 02:24:48 +0100
commit4fd11623ddc55ce3bbdaf1984834455afef78279 (patch)
tree620ea5c7f1bad5a452535d4e266209d06e535270 /plugins/mod_saslauth.lua
parent15d5dffa63b71c75bcba23046ac20e4a7f0e3a58 (diff)
downloadprosody-4fd11623ddc55ce3bbdaf1984834455afef78279.tar.gz
prosody-4fd11623ddc55ce3bbdaf1984834455afef78279.zip
mod_saslauth: Improve log message when no SASL mechanisms offered (thanks hexa)
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index fba84ef8..ba30b9e6 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -275,7 +275,8 @@ module:hook("stream-features", function(event)
if mechanisms[1] then
features:add_child(mechanisms);
elseif not next(sasl_mechanisms) then
- log("warn", "No available SASL mechanisms, verify that the configured authentication module is working");
+ local authmod = module:get_option_string("authentication", "internal_plain");
+ log("error", "No available SASL mechanisms, verify that the configured authentication module '%s' is loaded and configured correctly", authmod);
else
log("warn", "All available authentication mechanisms are either disabled or not suitable for an insecure connection");
end