Changeset

603:423fd24fff54

Removed the unnecessary idna.to_ascii applied to the DIGEST-MD5 disgest-uri response values, which was causing auth failures with some clients.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 08 Dec 2008 03:27:02 +0500
parents 602:a977227aa9e6
children 604:b6a31e97d018
files util/sasl.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)