aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-08-08 21:13:18 +0200
committerTobias Markmann <tm@ayena.de>2009-08-08 21:13:18 +0200
commita108ff1ca61ac9f73ef99dbd7b0c054811afe5ff (patch)
treefcad6a668e5b77b63206da235db0372db458f7d3 /util
parent9a336a6d926095cdf9f7beefca6208c75405f807 (diff)
downloadprosody-a108ff1ca61ac9f73ef99dbd7b0c054811afe5ff.tar.gz
prosody-a108ff1ca61ac9f73ef99dbd7b0c054811afe5ff.zip
Fixing a SASL issue by always passing the realm from SASL framework init to the handlers.
Diffstat (limited to 'util')
-rw-r--r--util/sasl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 48412ea7..008b6575 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -198,7 +198,7 @@ local function new_digest_md5(realm, credentials_handler)
--TODO maybe realm support
self.username = response["username"];
- local password_encoding, Y = self.credentials_handler("DIGEST-MD5", response["username"], to_unicode(domain), response["realm"], decoder);
+ local password_encoding, Y = self.credentials_handler("DIGEST-MD5", response["username"], self.realm, response["realm"], decoder);
if Y == nil then return "failure", "not-authorized"
elseif Y == false then return "failure", "account-disabled" end
local A1 = "";