--- a/plugins/mod_saslauth.lua Wed Jan 18 08:54:26 2012 +0500
+++ b/plugins/mod_saslauth.lua Tue Jan 24 14:57:53 2012 -0800
@@ -191,8 +191,10 @@
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