diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-12-03 19:34:41 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-12-03 19:34:41 +0000 |
commit | fd7b0786e552e1a1d8dd978d3526f9ecddfa4f6b (patch) | |
tree | 30ee1a06f2c70b3f6128e7294d07cc6f625740ed /util | |
parent | d2d44b512ba429551e7ce843d64c25be745a8dd5 (diff) | |
parent | 11538c72c66d63aa440373558f36f646a2985ec1 (diff) | |
download | prosody-fd7b0786e552e1a1d8dd978d3526f9ecddfa4f6b.tar.gz prosody-fd7b0786e552e1a1d8dd978d3526f9ecddfa4f6b.zip |
Automated merge with http://84.46.7.57:1234
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 7983a3c2..ab8b814b 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -144,6 +144,7 @@ local function new_digest_md5(realm, password_handler) if not response["qop"] then response["qop"] = "auth" end if response["realm"] == nil then response["realm"] = "" end + local raw_realm = response["realm"]; if response["charset"] == nil then response["username"] = latin1toutf8(response["username"]) @@ -163,7 +164,7 @@ local function new_digest_md5(realm, password_handler) --TODO maybe realm support self.username = response["username"] - local password_encoding, Y = self.password_handler(response["username"], response["realm"], "DIGEST-MD5") + local password_encoding, Y = self.password_handler(response["username"], response["realm"], "DIGEST-MD5", raw_realm) if Y == nil then return "failure", "not-authorized" elseif Y == false then return "failure", "account-disabled" end |