Diff

plugins/mod_saslauth.lua @ 5352:e10f701c2082

Merge 0.9->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 16 Mar 2013 18:49:14 +0100
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	Sat Mar 16 18:49:14 2013 +0100
@@ -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;