aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-11-19 16:43:38 +0100
committerTobias Markmann <tm@ayena.de>2009-11-19 16:43:38 +0100
commit5ee762728b5acc38906ae3ba5523ded1f0d7005c (patch)
tree5ee146cc5a2aa0895c4a5559e58bb36a3d85fe5b /plugins/mod_saslauth.lua
parentd5511aa898fea7f142f3b61799ea0724b4b8877f (diff)
downloadprosody-5ee762728b5acc38906ae3ba5523ded1f0d7005c.tar.gz
prosody-5ee762728b5acc38906ae3ba5523ded1f0d7005c.zip
Allow SASL PLAIN over unsecure connections when intended by admin.
Diffstat (limited to 'plugins/mod_saslauth.lua')
-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 d595fd24..2223f056 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -141,7 +141,7 @@ module:add_event_hook("stream-features",
session.sasl_handler = new_sasl(session.host, anonymous_authentication_profile);
else
session.sasl_handler = new_sasl(session.host, default_authentication_profile);
- if not session.secure then
+ if not (module:get_option("allow_unencrypted_plain_auth")) and not session.secure then
session.sasl_handler:forbidden({"PLAIN"});
end
end