Software /
code /
prosody
Comparison
plugins/mod_saslauth.lua @ 4494:694491140a67
Merge with 0.9
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 26 Jan 2012 18:48:21 +0000 |
parent | 4492:0a4781f165e3 |
child | 4504:55b61221ecb8 |
comparison
equal
deleted
inserted
replaced
4488:99b37efe13ed | 4494:694491140a67 |
---|---|
189 | 189 |
190 if not session.from_host then | 190 if not session.from_host then |
191 session.from_host = text; | 191 session.from_host = text; |
192 end | 192 end |
193 session.sends2s(build_reply("success")) | 193 session.sends2s(build_reply("success")) |
194 module:log("info", "Accepting SASL EXTERNAL identity from %s", text or session.from_host); | 194 |
195 s2s_make_authenticated(session, text or session.from_host) | 195 local domain = text ~= "" and text or session.from_host; |
196 module:log("info", "Accepting SASL EXTERNAL identity from %s", domain); | |
197 s2s_make_authenticated(session, domain); | |
196 session:reset_stream(); | 198 session:reset_stream(); |
197 return true | 199 return true |
198 end | 200 end |
199 | 201 |
200 module:hook("stanza/urn:ietf:params:xml:ns:xmpp-sasl:auth", function(event) | 202 module:hook("stanza/urn:ietf:params:xml:ns:xmpp-sasl:auth", function(event) |