diff options
author | Kim Alvefur <zash@zash.se> | 2018-02-04 00:58:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-02-04 00:58:38 +0100 |
commit | 477f77e250da47f9160c524101ab3e1efcae9dc8 (patch) | |
tree | 731461405a5378b49ea6b6238447f47ca7334e6c /plugins/mod_saslauth.lua | |
parent | 5a07b39c7fb46f93b4af1288d8c4dfaba9cedbb3 (diff) | |
download | prosody-477f77e250da47f9160c524101ab3e1efcae9dc8.tar.gz prosody-477f77e250da47f9160c524101ab3e1efcae9dc8.zip |
mod_saslauth: Close connection if no fallback kicks in on SASL EXTERNAL failure
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r-- | plugins/mod_saslauth.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua index 55b93cda..3ca709e0 100644 --- a/plugins/mod_saslauth.lua +++ b/plugins/mod_saslauth.lua @@ -113,7 +113,9 @@ module:hook_tag(xmlns_sasl, "failure", function (session, stanza) end, 500) module:hook_stanza(xmlns_sasl, "failure", function (session, stanza) - -- TODO: Dialback wasn't loaded. Do something useful. + session.log("debug", "No fallback from SASL EXTERNAL failure, giving up"); + session:close(); + return true; end, 90) module:hook_tag("http://etherx.jabber.org/streams", "features", function (session, stanza) |