Software /
code /
prosody
Comparison
util/sasl.lua @ 1161:5bc2b7b5b81d
.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Fri, 15 May 2009 17:28:39 +0200 |
parent | 1160:7e48324f946e |
child | 1305:37657578ea85 |
comparison
equal
deleted
inserted
replaced
1160:7e48324f946e | 1161:5bc2b7b5b81d |
---|---|
204 if Y == nil then return "failure", "not-authorized" | 204 if Y == nil then return "failure", "not-authorized" |
205 elseif Y == false then return "failure", "account-disabled" end | 205 elseif Y == false then return "failure", "account-disabled" end |
206 local A1 = ""; | 206 local A1 = ""; |
207 if response.authzid then | 207 if response.authzid then |
208 if response.authzid == self.username.."@"..self.realm then | 208 if response.authzid == self.username.."@"..self.realm then |
209 log("warn", "Client is violating XMPP RFC. See section 6.1 of RFC 3920"); | 209 log("warn", "Client is violating XMPP RFC. See section 6.1 of RFC 3920."); |
210 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid; | 210 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid; |
211 else | 211 else |
212 A1 = "?"; | 212 A1 = "?"; |
213 end | 213 end |
214 else | 214 else |