aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-24 18:54:54 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-24 18:54:54 +0000
commit819fefe58ed1cc7580fb1b26779134f857f7edc5 (patch)
tree4998a8cf76613d19ae01b72fd55853c6e3fdcdd5 /plugins/mod_saslauth.lua
parent84b19928a500c595c1348bbef05c36a5484199e8 (diff)
downloadprosody-819fefe58ed1cc7580fb1b26779134f857f7edc5.tar.gz
prosody-819fefe58ed1cc7580fb1b26779134f857f7edc5.zip
mod_saslauth: Handle session bind requests to the host, fixes OneTeam login
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index c6ead31a..e1746c8e 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -189,7 +189,10 @@ module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-bind:bind", function(event)
return true;
end);
-module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", function(event)
+local function handle_legacy_session(event)
event.origin.send(st.reply(event.stanza));
return true;
-end);
+end
+
+module:hook("iq/self/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session);
+module:hook("iq/host/urn:ietf:params:xml:ns:xmpp-session:session", handle_legacy_session);