Software /
code /
prosody
Diff
util/sasl.lua @ 278:770a78cd38d7
Forward response stanzas to sasl.lua and some other stuff.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Mon, 10 Nov 2008 16:28:15 +0100 |
parent | 277:00c2fc751f50 |
child | 280:516f4c901991 |
line wrap: on
line diff
--- a/util/sasl.lua Sun Nov 09 22:45:17 2008 +0100 +++ b/util/sasl.lua Mon Nov 10 16:28:15 2008 +0100 @@ -139,11 +139,13 @@ 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