diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-11-13 06:10:46 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-11-13 06:10:46 +0500 |
commit | d8063b7436ced6108cb9023a0f7597030e63d70a (patch) | |
tree | a069ce993ad6b12e9a0541b963270592002eacd5 /util/sasl.lua | |
parent | 715a48d5c3fb70138f9f41e8da93fa1d2a9f3766 (diff) | |
download | prosody-d8063b7436ced6108cb9023a0f7597030e63d70a.tar.gz prosody-d8063b7436ced6108cb9023a0f7597030e63d70a.zip |
util.sasl: Allow authzid=username (for compatibility with Smack's non-compliant behavior).
Diffstat (limited to 'util/sasl.lua')
-rw-r--r-- | util/sasl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 9073a640..1a0b4e2f 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -203,7 +203,7 @@ local function new_digest_md5(realm, credentials_handler) elseif Y == false then return "failure", "account-disabled" end local A1 = ""; if response.authzid then - if response.authzid == self.username.."@"..self.realm then + if response.authzid == self.username or response.authzid == self.username.."@"..self.realm then -- COMPAT log("warn", "Client is violating XMPP RFC. See section 6.1 of RFC 3920."); A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid; |