From a918bf3a95f9accc7272edea4fe4fdab705a0b17 Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 14 May 2014 22:32:51 +0100 Subject: Support jabberd2 SASL with really empty response Despite http://xmpp.org/rfcs/rfc3920.html#rfc.section.6.2, jabberd version 2.2.14 cannot accept the typical "=". Instead it must be truly empty, so we force an empty response for this stanza only. --- sleekxmpp/features/feature_mechanisms/mechanisms.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sleekxmpp') diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py index f71a9c25..17ad5ed0 100644 --- a/sleekxmpp/features/feature_mechanisms/mechanisms.py +++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py @@ -215,6 +215,8 @@ class FeatureMechanisms(BasePlugin): self.attempted_mechs.add(self.mech.name) self.xmpp.disconnect() else: + if resp.get_value() == '': + resp.del_value() resp.send(now=True) def _handle_success(self, stanza): -- cgit v1.2.3