Skip to content
Snippets Groups Projects
Commit cd21d4a6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[MattJ] don't send an authorization identity in SASL PLAIN. Fixes #5658

parent 9c5b833e
No related branches found
No related tags found
No related merge requests found
......@@ -463,8 +463,7 @@ class SASL(PlugIn):
'\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'},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment