]> code.delx.au - offlineimap/commitdiff
set gssapi to false on kerberos error
authorChristoph Höger <choeger@cs.tu-berlin.de>
Mon, 29 Jun 2009 08:53:07 +0000 (10:53 +0200)
committerJohn Goerzen <jgoerzen@complete.org>
Mon, 29 Jun 2009 05:05:00 +0000 (00:05 -0500)
* this fixes a crash when the n-th connection returns an error
by falling back to plainauth
Signed-off-by: Christoph Höger <choeger@cs.tu-berlin.de>
offlineimap/imapserver.py

index 2658e74e1106db2ca61d53311f54e599bd0d069f..d18ed961130c989d3cb5b67f9b8506153b6b3fc9 100644 (file)
@@ -274,6 +274,7 @@ class IMAPServer:
                         try:
                             imapobj.authenticate('GSSAPI', self.gssauth)
                         except imapobj.error, val:
+                            self.gssapi = False
                             UIBase.getglobalui().debug('imap',
                                 'GSSAPI Authentication failed')               
                         else: