aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-03 19:34:41 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-03 19:34:41 +0000
commitfd7b0786e552e1a1d8dd978d3526f9ecddfa4f6b (patch)
tree30ee1a06f2c70b3f6128e7294d07cc6f625740ed /plugins/mod_saslauth.lua
parentd2d44b512ba429551e7ce843d64c25be745a8dd5 (diff)
parent11538c72c66d63aa440373558f36f646a2985ec1 (diff)
downloadprosody-fd7b0786e552e1a1d8dd978d3526f9ecddfa4f6b.tar.gz
prosody-fd7b0786e552e1a1d8dd978d3526f9ecddfa4f6b.zip
Automated merge with http://84.46.7.57:1234
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 7cb93c46..52ef68c7 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -64,14 +64,14 @@ local function handle_status(session, status)
end
end
-local function password_callback(node, host, mechanism)
+local function password_callback(node, host, mechanism, raw_host)
local password = (datamanager.load(node, host, "accounts") or {}).password; -- FIXME handle hashed passwords
local func = function(x) return x; end;
if password then
if mechanism == "PLAIN" then
return func, password;
elseif mechanism == "DIGEST-MD5" then
- return func, md5(node..":"..host..":"..password);
+ return func, md5(node..":"..raw_host..":"..password);
end
end
return func, nil;