Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 6424:89c42aff8510
mod_dialback, mod_saslauth: Remove broken fallback to dialback on SASL EXTERNAL failure
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Sep 2014 14:23:01 +0200 |
parent | 6302:76699a0ae4c4 |
child | 6425:436a670a0189 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Tue Sep 23 00:23:33 2014 +0200 +++ b/plugins/mod_saslauth.lua Tue Sep 23 14:23:01 2014 +0200 @@ -99,12 +99,10 @@ module:log("info", "SASL EXTERNAL with %s failed", session.to_host) -- TODO: Log the failure reason 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_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza) if session.type ~= "s2sout_unauthed" or not session.secure then return; end