Comparison

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
comparison
equal deleted inserted replaced
9737:3d6f5b20cca6 9738:f5aa6fdc935e
273 end 273 end
274 end 274 end
275 if mechanisms[1] then 275 if mechanisms[1] then
276 features:add_child(mechanisms); 276 features:add_child(mechanisms);
277 elseif not next(sasl_mechanisms) then 277 elseif not next(sasl_mechanisms) then
278 log("warn", "No available SASL mechanisms, verify that the configured authentication module is working"); 278 local authmod = module:get_option_string("authentication", "internal_plain");
279 log("error", "No available SASL mechanisms, verify that the configured authentication module '%s' is loaded and configured correctly", authmod);
279 else 280 else
280 log("warn", "All available authentication mechanisms are either disabled or not suitable for an insecure connection"); 281 log("warn", "All available authentication mechanisms are either disabled or not suitable for an insecure connection");
281 end 282 end
282 else 283 else
283 features:tag("bind", bind_attr):tag("required"):up():up(); 284 features:tag("bind", bind_attr):tag("required"):up():up();