diff options
author | Tobias Markmann <tm@ayena.de> | 2008-11-10 16:28:15 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2008-11-10 16:28:15 +0100 |
commit | c4d2deffc64a4d955e52d7e8b2dce3af444872c7 (patch) | |
tree | 8dd7f6632d952b852682ffb6ff6a0ceba8fcc21d /util/sasl.lua | |
parent | 346b695b798ac36147be7d47f3dfb7a946776358 (diff) | |
download | prosody-c4d2deffc64a4d955e52d7e8b2dce3af444872c7.tar.gz prosody-c4d2deffc64a4d955e52d7e8b2dce3af444872c7.zip |
Forward response stanzas to sasl.lua and some other stuff.
Diffstat (limited to 'util/sasl.lua')
-rw-r--r-- | util/sasl.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 7a0e47b8..f2ff6592 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -139,11 +139,13 @@ local function new_digest_md5(onAuth, onSuccess, onFail, onWrite) end -- compare response_value with own calculation - local A1-- = H(response["username"]..":"..realm-value, ":", passwd } ), - -- ":", nonce-value, ":", cnonce-value) - local A2 + --local A1 = usermanager.get_md5(response["username"], hostname)..":"..response["nonce"]..response["cnonce"] + local A1 = H("tobias:luaetta.ath.cx:tobias")..":"..response["nonce"]..response["cnonce"] + local A2 = "AUTHENTICATE:"..response["digest-uri"] - --local response_value = HEX(KD(HEX(H(A1)), response["nonce"]..":"..response["nonce-count"]..":"..response["cnonce-value"]..":"..response["qop"]..":"..HEX(H(A2)))) + local response_value = HEX(KD(HEX(H(A1)), response["nonce"]..":"..response["nonce-count"]..":"..response["cnonce-value"]..":"..response["qop"]..":"..HEX(H(A2)))) + + log("debug", "response_value: "..response_value); if response["qop"] == "auth" then |