Remove that idn stuff for realm because it's either an ugly hack that the password_handler isn't ready for or something worse.

Sun, 30 Nov 2008 02:26:37 +0100

author
Tobias Markmann <tm@ayena.de>
date
Sun, 30 Nov 2008 02:26:37 +0100
changeset 505
1b938e00412c
parent 496
b3251b137d68
child 506
96f9f8dd9a45

Remove that idn stuff for realm because it's either an ugly hack that the password_handler isn't ready for or something worse.

util/sasl.lua file | annotate | diff | comparison | revisions
--- a/util/sasl.lua	Sun Nov 30 01:35:40 2008 +0100
+++ b/util/sasl.lua	Sun Nov 30 02:26:37 2008 +0100
@@ -88,7 +88,7 @@
 											qop = "auth",
 											charset = "utf-8",
 											algorithm = "md5-sess",
-											realm = idna_ascii(self.realm)});
+											realm = self.realm});
 			return "challenge", challenge
 		elseif (self.step == 2) then
 			local response = parse(message)
@@ -127,7 +127,7 @@
 			
 			--TODO maybe realm support
 			self.username = response["username"]
-			local password_encoding, Y = self.password_handler(response["username"], idna_unicode(response["realm"]), "DIGEST-MD5")
+			local password_encoding, Y = self.password_handler(response["username"], response["realm"], "DIGEST-MD5")
 			if Y == nil then return "failure", "not-authorized"
 			elseif Y == false then return "failure", "account-disabled" end
 			

mercurial