Diff

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
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Mon Feb 14 15:58:08 2022 +0000
+++ b/plugins/mod_saslauth.lua	Thu Feb 10 19:54:14 2022 +0000
@@ -309,7 +309,7 @@
 			return;
 		end
 
-		local authmod = module:get_option_string("authentication", "internal_plain");
+		local authmod = module:get_option_string("authentication", "internal_hashed");
 		if available_mechanisms:empty() then
 			log("warn", "No available SASL mechanisms, verify that the configured authentication module '%s' is loaded and configured correctly", authmod);
 			return;