From 0e96df74102467122e107756073053abd96b9670 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 4 Feb 2018 00:58:38 +0100 Subject: mod_saslauth: Close connection if no fallback kicks in on SASL EXTERNAL failure --- plugins/mod_saslauth.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/mod_saslauth.lua') 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) -- cgit v1.2.3