Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 5355:11eff33f60d3
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 20 Mar 2013 20:34:38 +0000 |
parent | 5351:901ed253bbf7 |
child | 5362:612467e263af |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Tue Mar 12 12:30:35 2013 +0000 +++ b/plugins/mod_saslauth.lua Wed Mar 20 20:34:38 2013 +0000 @@ -88,11 +88,7 @@ module:log("debug", "SASL EXTERNAL with %s succeeded", session.to_host); session.external_auth = "succeeded" session:reset_stream(); - - local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams", - ["xmlns:db"] = 'jabber:server:dialback', version = "1.0", to = session.to_host, from = session.from_host}; - session.sends2s("<?xml version='1.0'?>"); - session.sends2s(st.stanza("stream:stream", default_stream_attr):top_tag()); + session:open_stream(); s2s_make_authenticated(session, session.to_host); return true;