util/sasl.lua

changeset 2080
ca419b92a8c7
parent 2079
5334723fa24d
child 2083
47bfc69fb2d2
child 2189
8fbbdb11a520
equal deleted inserted replaced
2079:5334723fa24d 2080:ca419b92a8c7
203 elseif Y == false then return "failure", "account-disabled" end 203 elseif Y == false then return "failure", "account-disabled" end
204 local A1 = ""; 204 local A1 = "";
205 if response.authzid then 205 if response.authzid then
206 if response.authzid == self.username or response.authzid == self.username.."@"..self.realm then 206 if response.authzid == self.username or response.authzid == self.username.."@"..self.realm then
207 -- COMPAT 207 -- COMPAT
208 log("warn", "Client is violating XMPP RFC. See section 6.1 of RFC 3920."); 208 log("warn", "Client is violating RFC 3920 (section 6.1, point 7).");
209 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid; 209 A1 = Y..":"..response["nonce"]..":"..response["cnonce"]..":"..response.authzid;
210 else 210 else
211 return "failure", "invalid-authzid"; 211 return "failure", "invalid-authzid";
212 end 212 end
213 else 213 else

mercurial