# HG changeset patch # User Waqas Hussain # Date 1228688822 -18000 # Node ID 423fd24fff5461d1cd34312ed43b99e0e7f9bd1f # Parent a977227aa9e6f1bfc0f2949e7dead605dde1b60d Removed the unnecessary idna.to_ascii applied to the DIGEST-MD5 disgest-uri response values, which was causing auth failures with some clients. diff -r a977227aa9e6 -r 423fd24fff54 util/sasl.lua --- a/util/sasl.lua Mon Dec 08 03:23:37 2008 +0500 +++ b/util/sasl.lua Mon Dec 08 03:27:02 2008 +0500 @@ -205,7 +205,7 @@ elseif Y == false then return "failure", "account-disabled" end local A1 = Y..":"..response["nonce"]..":"..response["cnonce"]--:authzid - local A2 = "AUTHENTICATE:"..protocol.."/"..idna_ascii(domain) + local A2 = "AUTHENTICATE:"..protocol.."/"..domain; local HA1 = md5(A1, true) local HA2 = md5(A2, true) @@ -215,7 +215,7 @@ if response_value == response["response"] then -- calculate rspauth - A2 = ":"..protocol.."/"..idna_ascii(domain) + A2 = ":"..protocol.."/"..domain; HA1 = md5(A1, true) HA2 = md5(A2, true)