Comparison

plugins/mod_saslauth.lua @ 12333:ed8a4f8dfd27

usermanager, mod_saslauth: Default to internal_hashed if no auth module specified The default config was updated in this way long ago, but if no option was present in the config, Prosody would load internal_plain. This change can result in changes (for the better) for people using very old configuration files lacking an 'authentication' setting.
author Matthew Wild <mwild1@gmail.com>
date Thu, 10 Feb 2022 19:54:14 +0000
parent 12330:38b5b05407be
child 12480:7e9ebdc75ce4
comparison
equal deleted inserted replaced
12332:0d245034600a 12333:ed8a4f8dfd27
307 end 307 end
308 features:add_child(mechanisms); 308 features:add_child(mechanisms);
309 return; 309 return;
310 end 310 end
311 311
312 local authmod = module:get_option_string("authentication", "internal_plain"); 312 local authmod = module:get_option_string("authentication", "internal_hashed");
313 if available_mechanisms:empty() then 313 if available_mechanisms:empty() then
314 log("warn", "No available SASL mechanisms, verify that the configured authentication module '%s' is loaded and configured correctly", authmod); 314 log("warn", "No available SASL mechanisms, verify that the configured authentication module '%s' is loaded and configured correctly", authmod);
315 return; 315 return;
316 end 316 end
317 317