Comparison

plugins/mod_saslauth.lua @ 12718:27a4a7e64831

mod_saslauth: Only announce bind feature if no resource yet bound It's now possible to bind during SASL2 negotiation.
author Matthew Wild <mwild1@gmail.com>
date Sat, 03 Sep 2022 21:19:00 +0100
parent 12641:e9865b0cfb89
child 12721:7830db3c38c3
comparison
equal deleted inserted replaced
12717:898e99f49d80 12718:27a4a7e64831
350 elseif not available_disabled:empty() then 350 elseif not available_disabled:empty() then
351 log("warn", "All SASL mechanisms provided by authentication module '%s' are disabled (%s)", 351 log("warn", "All SASL mechanisms provided by authentication module '%s' are disabled (%s)",
352 authmod, available_disabled); 352 authmod, available_disabled);
353 end 353 end
354 354
355 else 355 elseif not session.full_jid then
356 features:tag("bind", bind_attr):tag("required"):up():up(); 356 features:tag("bind", bind_attr):tag("required"):up():up();
357 features:tag("session", xmpp_session_attr):tag("optional"):up():up(); 357 features:tag("session", xmpp_session_attr):tag("optional"):up():up();
358 end 358 end
359 end); 359 end);
360 360