aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-01-26 18:48:21 +0000
committerMatthew Wild <mwild1@gmail.com>2012-01-26 18:48:21 +0000
commit3c8c0f2e94c21f8d330120ec43e51acce73c88ba (patch)
tree977aaba7354c482266ebde89a7d44312e77aa4b2 /plugins/mod_saslauth.lua
parent71cbdc86adfa7c32cb7407c8ad822b25fc9a173f (diff)
parentfdd51ac3ffa99de906d63f9b45897c0c95ce8e2a (diff)
downloadprosody-3c8c0f2e94c21f8d330120ec43e51acce73c88ba.tar.gz
prosody-3c8c0f2e94c21f8d330120ec43e51acce73c88ba.zip
Merge with 0.9
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 9c62e5ec..58655a24 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -191,8 +191,10 @@ local function s2s_external_auth(session, stanza)
session.from_host = text;
end
session.sends2s(build_reply("success"))
- module:log("info", "Accepting SASL EXTERNAL identity from %s", text or session.from_host);
- s2s_make_authenticated(session, text or session.from_host)
+
+ local domain = text ~= "" and text or session.from_host;
+ module:log("info", "Accepting SASL EXTERNAL identity from %s", domain);
+ s2s_make_authenticated(session, domain);
session:reset_stream();
return true
end