fix traceback when connecting with PLAIN. Fixes #4815
This commit is contained in:
parent
521239377b
commit
cba0ae51cf
|
@ -214,6 +214,8 @@ class SASL(PlugIn):
|
||||||
self.mecs.remove('PLAIN')
|
self.mecs.remove('PLAIN')
|
||||||
self.mechanism = 'PLAIN'
|
self.mechanism = 'PLAIN'
|
||||||
self._owner._caller.get_password(self.set_password)
|
self._owner._caller.get_password(self.set_password)
|
||||||
|
self.startsasl = SASL_IN_PROCESS
|
||||||
|
raise NodeProcessed
|
||||||
else:
|
else:
|
||||||
self.startsasl = SASL_FAILURE
|
self.startsasl = SASL_FAILURE
|
||||||
log.error('I can only use DIGEST-MD5, GSSAPI and PLAIN mecanisms.')
|
log.error('I can only use DIGEST-MD5, GSSAPI and PLAIN mecanisms.')
|
||||||
|
|
Loading…
Reference in New Issue