projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43822ea
)
Fixing a SASL issue by always passing the realm from SASL framework init to the handlers.
author
Tobias Markmann
<tm@ayena.de>
Sat, 8 Aug 2009 19:13:18 +0000
(21:13 +0200)
committer
Tobias Markmann
<tm@ayena.de>
Sat, 8 Aug 2009 19:13:18 +0000
(21:13 +0200)
util/sasl.lua
patch
|
blob
|
history
diff --git
a/util/sasl.lua
b/util/sasl.lua
index 48412ea7189802575dbcbb43012e732ad849e2d0..008b65757f48501d10772ca8e6214f2b810018cf 100644
(file)
--- a/
util/sasl.lua
+++ b/
util/sasl.lua
@@
-198,7
+198,7
@@
local function new_digest_md5(realm, credentials_handler)
--TODO maybe realm support
self.username = response["username"];
--TODO maybe realm support
self.username = response["username"];
- local password_encoding, Y = self.credentials_handler("DIGEST-MD5", response["username"],
to_unicode(domain)
, response["realm"], decoder);
+ local password_encoding, Y = self.credentials_handler("DIGEST-MD5", response["username"],
self.realm
, response["realm"], decoder);
if Y == nil then return "failure", "not-authorized"
elseif Y == false then return "failure", "account-disabled" end
local A1 = "";
if Y == nil then return "failure", "not-authorized"
elseif Y == false then return "failure", "account-disabled" end
local A1 = "";