[imp] Redirect loop on IMP auth

Jaz horde at harbell.net
Wed Jul 6 11:16:07 PDT 2005


Chuck Hagenbuch wrote:

>Quoting Jaz <horde at harbell.net>:
>  
>
>>2) If yes, then has anyone gotten IMP to login with PHP5?
>>    
>>
>
>Yes.
>
>  
>
>>3) ... on Win32?
>>    
>>
>
>Yes.
>
>-chuck
>  
>

After rebuilding my horde/imp/turba/kronolith/... environment (today, 
cvs HEAD), I see the same behavior as before:
1 - Horde uses IMAP to successfully login;
2 - IMP fails somewhere in the IMAP login. The login failure is logged 
in both the IMAP server and horde log.

Again, the failure began when I upgraded PHP 4.3 to 5.0.4, PEAR, and 
Apache 1.3.9 to 2.0.54.
In PHP I'm using register_globals = On (setting to off does not fix this 
problem).

Here is the IMP test:

-------------------------------------------------------
PHP IMAP Support Test
*Attempting to automatically determine the correct connection parameters 
for your server:*

    * /Trying protocol imap, Port 143:/

          SUCCESS - INBOX has 954 messages (255 new 0 recent)

    * /Trying protocol imap/notls, Port 143:/

          SUCCESS - INBOX has 954 messages (255 new 0 recent)

    * /Trying protocol imap/ssl, Port 143:/

          ERROR - The server returned the following error message:
          Array
          (
          [0] => Can't open mailbox {127.0.0.1:143/imap/ssl}INBOX:
          invalid remote specification
          )

    * /Trying protocol imap/ssl/novalidate-cert, Port 143:/

          ERROR - The server returned the following error message:
          Array
          (
          [0] => Can't open mailbox
          {127.0.0.1:143/imap/ssl/novalidate-cert}INBOX: invalid remote
          specification
          )

    * /Trying protocol imap/tls/novalidate-cert, Port 143:/

          ERROR - The server returned the following error message:
          Array
          (
          [0] => Can't open mailbox
          {127.0.0.1:143/imap/tls/novalidate-cert}INBOX: invalid remote
          specification
          )

*The following configurations were successful and may be used in your 
imp/config/servers.php file:*

    /Configuration 1/
    'server' => '127.0.0.1'
    'protocol' => 'imap'
    'port' => '143'

/Configuration 2/
'server' => '127.0.0.1'
'protocol' => 'imap/notls'
-------------------------------------------------------

Okay, so imap/notls works... so here's the imap section of my 
*unchanged* servers.php file:

$servers['imap'] = array(
    'name' => 'Mr IMAP',
    'server' => '127.0.0.1',
    'hordeauth' => false,
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => '',
    'namespace' => '',
    'maildomain' => 'harbell.homeip.net',
    'smtphost' => '127.0.0.1',
    'smtpport' => 25,
    'realm' => '',
    'preferred' => '',
    'dotfiles' => false,
    'hierarchies' => array()
);
-------------------------------------------------------

Do we still think this is not an IMP auth bug? Perhaps another 
windows-only PHP bug?

Anyone running these versions on win32 (Win2K) care to open a dialog to 
discuss how to attack this IMAP login failure issue?

Thanksin advance
-Jaz


More information about the imp mailing list