diff options
author | Graham <github@gra.dk> | 2014-05-14 22:32:51 +0100 |
---|---|---|
committer | Graham <github@gra.dk> | 2014-05-14 22:32:51 +0100 |
commit | a918bf3a95f9accc7272edea4fe4fdab705a0b17 (patch) | |
tree | f1f718459f4bda68b02b96fbea7633d8f4f36617 /sleekxmpp/features/feature_mechanisms/mechanisms.py | |
parent | 9434ae267ff7af08328061ed90526803f6f0a8a5 (diff) | |
download | slixmpp-a918bf3a95f9accc7272edea4fe4fdab705a0b17.tar.gz slixmpp-a918bf3a95f9accc7272edea4fe4fdab705a0b17.tar.bz2 slixmpp-a918bf3a95f9accc7272edea4fe4fdab705a0b17.tar.xz slixmpp-a918bf3a95f9accc7272edea4fe4fdab705a0b17.zip |
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 "<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">=</response>". Instead it must be truly empty, so we force an empty response for this stanza only.
Diffstat (limited to 'sleekxmpp/features/feature_mechanisms/mechanisms.py')
-rw-r--r-- | sleekxmpp/features/feature_mechanisms/mechanisms.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): |