aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commite9fff01f561a0b82168b8fe0a9761e83d17bd2c9 (patch)
tree9c1731ca7f2948a5d9c189e3250355713746327a /plugins
parent1688fab4436f77d702795485b21bca6f252ab9e8 (diff)
downloadprosody-e9fff01f561a0b82168b8fe0a9761e83d17bd2c9.tar.gz
prosody-e9fff01f561a0b82168b8fe0a9761e83d17bd2c9.zip
mod_saslauth: Handle session bind requests to the host, fixes OneTeam login
Diffstat (limited to 'plugins')
-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 7f9a27ad..f9b9dc9b 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -321,7 +321,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);