Comparison

plugins/mod_saslauth.lua @ 8479:867679b0fb03

mod_saslauth: Log which mechanisms are offered
author Kim Alvefur <zash@zash.se>
date Thu, 21 Dec 2017 10:15:47 +0100
parent 8234:97b3ca502547
child 8509:e1d274001855
comparison
equal deleted inserted replaced
8478:384658c7a26a 8479:867679b0fb03
261 if disabled_mechanisms:contains(mechanism) then 261 if disabled_mechanisms:contains(mechanism) then
262 log("debug", "Not offering disabled mechanism %s", mechanism); 262 log("debug", "Not offering disabled mechanism %s", mechanism);
263 elseif not origin.secure and insecure_mechanisms:contains(mechanism) then 263 elseif not origin.secure and insecure_mechanisms:contains(mechanism) then
264 log("debug", "Not offering mechanism %s on insecure connection", mechanism); 264 log("debug", "Not offering mechanism %s on insecure connection", mechanism);
265 else 265 else
266 log("debug", "Offering mechanism %s", mechanism);
266 mechanisms:tag("mechanism"):text(mechanism):up(); 267 mechanisms:tag("mechanism"):text(mechanism):up();
267 end 268 end
268 end 269 end
269 if mechanisms[1] then 270 if mechanisms[1] then
270 features:add_child(mechanisms); 271 features:add_child(mechanisms);