[Tickets #10680] Re: Authentication via IMP does fail for some passwords while using IMAP directly does work

bugs at horde.org bugs at horde.org
Tue Nov 1 18:50:11 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10680
------------------------------------------------------------------------------
  Ticket             | 10680
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Authentication via IMP does fail for some passwords
                     | while using IMAP directly does work
  Queue              | Kronolith
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2011-11-01 12:50) wrote:

> 2. output from imap log does read:
>
> S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID  
> ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> C: [SASL-IR AUTHENTICATE Command - username: horde-test at software-friends.de]

> 2. output from imap log does read:
>
> S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID  
> ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> C: [SASL-IR AUTHENTICATE Command - username: horde-test at software-friends.de]

Re-looking at the imap client code, the authentication password is  
never output to the debug stream.  So this won't work.

Instead, we will need to manually debug the code.  In  
imp/lib/Auth.php, on line 88 (just before the line  
$imp_imap->createImapObject($credentials['userId'],  
$credentials['password'], $credentials['server']);), insert the  
following:

Horde::debug($credentials);

It should look like:

             try {
                 Horde::debug($credentials);
                 $imp_imap->createImapObject($credentials['userId'],  
$credentials['password'], $credentials['server']);
             } catch (IMP_Imap_Exception $e) {
                 self::_logMessage(false, $imp_imap);
                 throw $e->authException();
             }

Then check the debug output file (see below for further information).   
You are looking for the 'password' entry - see if the password is what  
you expect for that user.

----

Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4





More information about the bugs mailing list