changeset 863dabb43577 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=863dabb43577 description: [MattJ] don't send an authorization identity in SASL PLAIN. Fixes #5658
diffstat:
src/common/xmpp/auth_nb.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 59c46cf16c09 -r 863dabb43577 src/common/xmpp/auth_nb.py --- a/src/common/xmpp/auth_nb.py Mon Mar 15 23:33:02 2010 +0100 +++ b/src/common/xmpp/auth_nb.py Tue Mar 16 07:09:44 2010 +0100 @@ -463,8 +463,7 @@ '\r', '').replace('\n', '') node = Node('response', attrs={'xmlns':NS_SASL}, payload=[sasl_data]) elif self.mechanism == 'PLAIN': - sasl_data = u'%s\x00%s\x00%s' % (self.username + '@' + \ - self._owner.Server, self.username, self.password) + sasl_data = u'\x00%s\x00%s' % (self.username, self.password) sasl_data = sasl_data.encode('utf-8').encode('base64').replace( '\n', '') node = Node('auth', attrs={'xmlns': NS_SASL, 'mechanism': 'PLAIN'},