aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2008-11-30 02:26:37 +0100
committerTobias Markmann <tm@ayena.de>2008-11-30 02:26:37 +0100
commitae8f24b0bfbb78c5359e66df7d16a9c9f3fac793 (patch)
treee1e847d0a3f383727f544c9f7dc1594fae376f54
parentd69635ec56f968b78eab310f03d42276750f4058 (diff)
downloadprosody-ae8f24b0bfbb78c5359e66df7d16a9c9f3fac793.tar.gz
prosody-ae8f24b0bfbb78c5359e66df7d16a9c9f3fac793.zip
Remove that idn stuff for realm because it's either an ugly hack that the password_handler isn't ready for or something worse.
-rw-r--r--util/sasl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index fa818b9a..c39e714f 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -88,7 +88,7 @@ local function new_digest_md5(realm, password_handler)
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 @@ 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"], 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