Diff

plugins/mod_saslauth.lua @ 8509:e1d274001855

Backed out changeset 89c42aff8510: The problem in ejabberd has reportedly been resolved and this change causes more problems than it solves (fixes #1006)
author Kim Alvefur <zash@zash.se>
date Sun, 04 Feb 2018 01:13:27 +0100
parent 8479:867679b0fb03
child 8510:149e98f88680
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Sat Jan 06 08:54:15 2018 +0100
+++ b/plugins/mod_saslauth.lua	Sun Feb 04 01:13:27 2018 +0100
@@ -110,10 +110,12 @@
 	module:log("info", "SASL EXTERNAL with %s failed: %s", session.to_host, condition);
 
 	session.external_auth = "failed"
-	session:close();
-	return true;
 end, 500)
 
+module:hook_stanza(xmlns_sasl, "failure", function (session, stanza)
+	-- TODO: Dialback wasn't loaded.  Do something useful.
+end, 90)
+
 module:hook_tag("http://etherx.jabber.org/streams", "features", function (session, stanza)
 	if session.type ~= "s2sout_unauthed" or not session.secure then return; end