This commit is contained in:
Nikos Kouremenos 2006-03-05 19:43:41 +00:00
parent a3ddb8981c
commit 0349c4ad23
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class SASL(PlugIn):
sasl_data='%s\x00%s\x00%s' % (self.username+'@' + self._owner.Server, sasl_data='%s\x00%s\x00%s' % (self.username+'@' + self._owner.Server,
self.username, self.password) self.username, self.password)
node=Node('auth', attrs={'xmlns':NS_SASL,'mechanism':'PLAIN'}, node=Node('auth', attrs={'xmlns':NS_SASL,'mechanism':'PLAIN'},
payload=[base64.encodestring(sasl_data).replace('\n','']) payload=[base64.encodestring(sasl_data).replace('\n','')])
else: else:
self.startsasl='failure' self.startsasl='failure'
self.DEBUG('I can only use DIGEST-MD5 and PLAIN mecanisms.', 'error') self.DEBUG('I can only use DIGEST-MD5 and PLAIN mecanisms.', 'error')