Removed the unnecessary idna.to_ascii applied to the DIGEST-MD5 disgest-uri response values, which was causing auth failures with some clients.

Mon, 08 Dec 2008 03:27:02 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 08 Dec 2008 03:27:02 +0500
changeset 603
423fd24fff54
parent 602
a977227aa9e6
child 604
b6a31e97d018

Removed the unnecessary idna.to_ascii applied to the DIGEST-MD5 disgest-uri response values, which was causing auth failures with some clients.

util/sasl.lua file | annotate | diff | comparison | revisions
--- 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)

mercurial