Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 9738:f5aa6fdc935e
mod_saslauth: Improve log message when no SASL mechanisms offered (thanks hexa)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 24 Nov 2018 02:24:48 +0100 |
parent | 8513:c6be9bbd0a1a |
child | 9993:02a41315d275 |
line wrap: on
line diff
--- 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