fix traceback when connecting with PLAIN. Fixes #4815

This commit is contained in:
Yann Leboulanger 2009-02-13 22:20:13 +00:00
parent 521239377b
commit cba0ae51cf
1 changed files with 2 additions and 0 deletions

View File

@ -214,6 +214,8 @@ class SASL(PlugIn):
self.mecs.remove('PLAIN')
self.mechanism = 'PLAIN'
self._owner._caller.get_password(self.set_password)
self.startsasl = SASL_IN_PROCESS
raise NodeProcessed
else:
self.startsasl = SASL_FAILURE
log.error('I can only use DIGEST-MD5, GSSAPI and PLAIN mecanisms.')