Software /
code /
prosody
Changeset
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 |
parents | 9737:3d6f5b20cca6 |
children | 9739:a74d78f79b23 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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