util/sasl.lua

changeset 1374
e85726d084d6
parent 1305
37657578ea85
child 1376
13587cf24435
equal deleted inserted replaced
1362:75c39ac6efa0 1374:e85726d084d6
203 if Y == nil then return "failure", "not-authorized" 203 if Y == nil then return "failure", "not-authorized"
204 elseif Y == false then return "failure", "account-disabled" end 204 elseif Y == false then return "failure", "account-disabled" end
205 local A1 = ""; 205 local A1 = "";
206 if response.authzid then 206 if response.authzid then
207 if response.authzid == self.username.."@"..self.realm then 207 if response.authzid == self.username.."@"..self.realm then
208 -- COMPAT
208 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.");
209 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid; 210 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid;
210 else 211 else
211 A1 = "?"; 212 A1 = "?";
212 end 213 end

mercurial