diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-21 22:00:49 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-21 22:00:49 +0000 |
commit | 566e3c4ac12d22073c7e376a6735af6ca4b2e52e (patch) | |
tree | 792212b97b9368630e33a26a42641fae30e7699a | |
parent | 5226f7e43a8b32b1d40ebea350c6267fef6f94de (diff) | |
download | prosody-566e3c4ac12d22073c7e376a6735af6ca4b2e52e.tar.gz prosody-566e3c4ac12d22073c7e376a6735af6ca4b2e52e.zip |
mod_saslauth: Requiring c2s encryption means requiring c2s encryption... thanks Flo
-rw-r--r-- | plugins/mod_saslauth.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index c0f57cd7..e248479b 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -115,6 +115,9 @@ local function sasl_handler(session, stanza) if not session.sasl_handler then return session.send(build_reply("failure", "invalid-mechanism")); end + if secure_auth_only and not session.secure then + return session.send(build_reply("failure", "encryption-required")); + end elseif not session.sasl_handler then return; -- FIXME ignoring out of order stanzas because ejabberd does end |