Login Disabled

Miguel de Val-Borro miguel.deval at gmail.com
Thu Aug 18 17:49:59 BST 2011


Hi,

I cannot login to an IMAP4 server that uses SSL/TLS on port 143 and
direct SSL connections on port 993. offlineimap tries plain authentication and
fails with the error message shown below.  However using the IMAP4_SSL client
class in imaplib I was able to login to the server:
imaplib.IMAP4_SSL('imap.astro.su.se').login('user', 'password')

Now debugging for imap: IMAP protocol debugging
DEBUG[imap]:   31:45.14 imaplib version 2.58
DEBUG[imap]:   31:45.14 new IMAP4 connection, tag=GJOK
DEBUG[imap]:   31:45.18 < * OK [CAPABILITY IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED] perdition ready on lamashtu.astro.su.se 0002acdb
DEBUG[imap]:   31:45.18         matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' [CAPABILITY IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED] perdition ready on lamashtu.astro.su.se 0002acdb', '[CAPABILITY IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED] perdition ready on lamashtu.astro.su.se 0002acdb')
DEBUG[imap]:   31:45.18 untagged_responses[OK] 0 += ["[CAPABILITY IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED] perdition ready on lamashtu.astro.su.se 0002acdb"]
DEBUG[imap]:   31:45.18         matched r'\[(?P<type>[A-Z-]+)( (?P<data>[^\]]*))?\]' => ('CAPABILITY', ' IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED', 'IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED')
DEBUG[imap]:   31:45.18 untagged_responses[CAPABILITY] 0 += ["IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED"]
DEBUG[imap]:   31:45.18 > GJOK0 CAPABILITY
DEBUG[imap]:   31:45.22 < * CAPABILITY IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED
DEBUG[imap]:   31:45.22         matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => ('CAPABILITY', ' IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED', 'IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED')
DEBUG[imap]:   31:45.22 untagged_responses[CAPABILITY] 1 += ["IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED"]
DEBUG[imap]:   31:45.30 < GJOK0 OK CAPABILITY
DEBUG[imap]:   31:45.30         matched r'(?P<tag>GJOK\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('GJOK0', 'OK', 'CAPABILITY')
DEBUG[imap]:   31:45.30 untagged_responses[CAPABILITY] => ['IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED', 'IMAP4 IMAP4REV1 STARTTLS LOGINDISABLED']
DEBUG[imap]:   31:45.30 CAPABILITIES: ('IMAP4', 'IMAP4REV1', 'STARTTLS', 'LOGINDISABLED')
DEBUG[imap]: Attempting plain authentication
DEBUG[imap]:   31:45.30 > GJOK1 LOGIN user "password"
DEBUG[imap]:   31:48.34 < GJOK1 NO failed: Login Disabled
DEBUG[imap]:   31:48.34         matched r'(?P<tag>GJOK\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('GJOK1', 'NO', 'failed: Login Disabled')
DEBUG[imap]:   31:48.34 NO response: failed: Login Disabled
WARNING: Error occured attempting to sync account SU: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/offlineimap/accounts.py", line 206, in syncrunner
    self.sync(siglistener)
  File "/usr/lib64/python2.7/site-packages/offlineimap/accounts.py", line 245, in sync
    remoterepos.syncfoldersto(localrepos, [statusrepos])
  File "/usr/lib64/python2.7/site-packages/offlineimap/repository/Base.py", line 142, in syncfoldersto
    srcfolders = src.getfolders()
  File "/usr/lib64/python2.7/site-packages/offlineimap/repository/IMAP.py", line 241, in getfolders
    imapobj = self.imapserver.acquireconnection()
  File "/usr/lib64/python2.7/site-packages/offlineimap/imapserver.py", line 290, in acquireconnection
    self.plainauth(imapobj)
  File "/usr/lib64/python2.7/site-packages/offlineimap/imapserver.py", line 181, in plainauth
    imapobj.login(self.username, self.getpassword())
  File "/usr/lib64/python2.7/imaplib.py", line 507, in login
    raise self.error(dat[-1])
error: failed: Login Disabled

Regards,
Miguel




More information about the OfflineIMAP-project mailing list