# HG changeset patch # User Kim Alvefur # Date 1543022688 -3600 # Node ID f5aa6fdc935e32571722a6e0fd4c92210d865e1f # Parent 3d6f5b20cca6c04c8619e05cb39a409e0dbcf24b mod_saslauth: Improve log message when no SASL mechanisms offered (thanks hexa) diff -r 3d6f5b20cca6 -r f5aa6fdc935e plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Sat Mar 10 19:58:41 2018 +0100 +++ b/plugins/mod_saslauth.lua Sat Nov 24 02:24:48 2018 +0100 @@ -275,7 +275,8 @@ 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