aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-10-21 14:37:05 +0200
committerKim Alvefur <zash@zash.se>2014-10-21 14:37:05 +0200
commit83b74ac626e04c60e3b724cf26f29d81b8b81248 (patch)
treed3aefa9536f29fea2c91fdd1392dcaa44dd061c1 /plugins
parent73979a83fdb1a17f4ed04c1ca979ac4ca74f7dc6 (diff)
downloadprosody-83b74ac626e04c60e3b724cf26f29d81b8b81248.tar.gz
prosody-83b74ac626e04c60e3b724cf26f29d81b8b81248.zip
mod_saslauth: Add LOGIN to mechanisms not allowed over unencrypted connections as it may be offered by 3rd party authentication plugins
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index edc151a6..52144175 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -18,7 +18,7 @@ local tostring = tostring;
local secure_auth_only = module:get_option_boolean("c2s_require_encryption", module:get_option_boolean("require_encryption", false));
local allow_unencrypted_plain_auth = module:get_option_boolean("allow_unencrypted_plain_auth", false)
-local insecure_mechanisms = module:get_option_set("allow_unencrypted_sasl", allow_unencrypted_plain_auth and {} or {"PLAIN"});
+local insecure_mechanisms = module:get_option_set("allow_unencrypted_sasl", allow_unencrypted_plain_auth and {} or {"PLAIN", "LOGIN"});
local log = module._log;