aboutsummaryrefslogtreecommitdiffstats
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
commit85a4ddb16de85a50dd226a45c2fca885fc95b665 (patch)
tree977aaba7354c482266ebde89a7d44312e77aa4b2
parent7437e279cbe895b88dbf7902f86cc0a9803cd04a (diff)
parent52e7f9dcbd32b32b774523d365d4ca5e3ef50b0d (diff)
downloadprosody-85a4ddb16de85a50dd226a45c2fca885fc95b665.tar.gz
prosody-85a4ddb16de85a50dd226a45c2fca885fc95b665.zip
Merge with 0.9
-rw-r--r--core/s2smanager.lua2
-rw-r--r--plugins/mod_saslauth.lua6
2 files changed, 5 insertions, 3 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index f44921c3..822713fe 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -659,7 +659,7 @@ function make_authenticated(session, host)
else
return false;
end
- session.log("debug", "connection %s->%s is now authenticated", session.from_host or "(unknown)", session.to_host or "(unknown)");
+ session.log("debug", "connection %s->%s is now authenticated for %s", session.from_host or "(unknown)", session.to_host or "(unknown)", host);
mark_connected(session);
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