[imp] IMAP Log-on warnings with Horde/IMP

Ronnie Garcia r.garcia@netia.net
Tue, 25 Sep 2001 18:57:36 +0200


  Ok, this may be annoying for you now, but i was able to reproduce the 
problem with a different imapd (courier-imap), and a different c-client lib 
version (imap-2000c).

  I'm still running the latest cvs (today's), and php's yesterday snap.

  If anyone is having any idea, i'd be pleased to hear from you..

  My original messages are bellow.

Regards,
Ronnie.

At 14:18 24/09/01 +0200, you wrote:
>  If this could help anyone finding a solution, i went a bit farther and 
> sniffed the IMAP dialog.
>
>
>">" is imapd -> imp
>"<" is imp -> imapd
>
> > * OK host_here IMAP4rev1 vxxxxx server ready
>< 00000000 CAPABILITY
> > * CAPABILITY IMAP4 IMAP4REV1 NAMESPACE IDLE SCAN SORT MAILBOX-REFERRALS 
> LOGIN-REFERRALS AUTH=LOGIN THREAD=ORDEREDSUBJECT
> > 00000000 OK CAPABILITY completed
>< 00000001 AUTHENTICATE LOGIN
> > + some_crypted_string_1
>< some_crypted_string_2
> > + some_crypted_string_3
>< some_crypted_string_4
> > 00000001 OK AUTHENTICATE completed
>< 00000002 CAPABILITY
> > * CAPABILITY IMAP4 IMAP4REV1 NAMESPACE IDLE SCAN SORT MAILBOX-REFERRALS 
> LOGIN-REFERRALS AUTH=LOGIN THREAD=ORDEREDSUBJECT
> > 00000002 OK CAPABILITY completed
>< 00000003 LOGOUT
> > * BYE host_here IMAP4rev1 server terminating connection
> > 00000003 OK LOGOUT completed
>
>In my case, when you enter login/pass in IMP's logon form, it does a total 
>of 3 IMAP logins. Still in my case, the first one is always correct. The 
>following 2 always leads to failure. The snif logs shows that IMP uses a 
>different "some_crypted_string_4" on these last 2 login attempts.. i guess 
>this is the password field.
>
>  But why would it use a different password ?
>
>Thanks again,
>Ronnie.
>
>(Below is my original message)
>
>At 16:03 21/09/01 +0200, Ronnie Garcia wrote:
>>Hi,
>>  I didnt find anything related in horde/imp mailing lists archives, so i 
>> go for the post.
>>
>>My setup is:
>>
>>  - RH 6.2 (kernel 2.2.14)
>>  - Apache/1.3.20 (Unix) PHP/4.0.8-dev mod_ssl/2.8.4 OpenSSL/0.9.6b (but 
>> i *dont* use SSL at all, for the moment at least)
>>  - horde latest cvs (today)
>>  - imp latest cvs (today)
>>  - turba lastet cvs (today)
>>  - mysql 3.23.35 (rpm) for horde/imp prefs and turba add-books
>>  - standard imapd from redhat
>>
>>IMP is configured to handle auth with :
>>
>>$this->registry['auth']['login'] = 'imp';
>>$this->registry['auth']['logout'] = 'imp';
>>
>>in /horde/config/registry.php
>>
>>
>>The problem is :
>>  When i first log-on, i get the following warnings on the horde's home page.
>>
>><horde output>
>>Warning: Retrying LOGIN authentication after AUTHENTICATE LOGIN failed 
>>(errflg=1) in Unknown on line 0
>>Warning: Retrying LOGIN authentication after AUTHENTICATE LOGIN failed 
>>(errflg=1) in Unknown on line 0
>>Warning: Can not authenticate to IMAP server: AUTHENTICATE LOGIN failed 
>>(errflg=2) in Unknown on line 0
>></horde output>
>>
>><syslog first login>
>>Sep 21 15:44:04 ns1 imapd[23940]: Authenticated user=login-here 
>>host=host-here
>>Sep 21 15:44:04 ns1 imapd[23940]: Logout user=login-here host=host-here
>>Sep 21 15:44:06 ns1 PAM_pwdb[23941]: 1 authentication failure; (uid=0) -> 
>>login-here for imap service
>>Sep 21 15:44:06 ns1 imapd[23941]: Login failure user=login-here 
>>host=host-here
>>Sep 21 15:44:10 ns1 PAM_pwdb[23941]: 1 authentication failure; (uid=0) -> 
>>login-here for imap service
>>Sep 21 15:44:10 ns1 imapd[23941]: Login failure user=login-here 
>>host=nhost-here
>>Sep 21 15:44:14 ns1 PAM_pwdb[23941]: 1 authentication failure; (uid=0) -> 
>>login-here for imap service
>>Sep 21 15:44:14 ns1 imapd[23941]: Login failure user=login-here 
>>host=host-here
>></syslog first login>
>>
>>Then i click "Mail" and get to the login form again. I enter login/pass 
>>again, and IMP pops up correctly.
>>
>><syslog second login>
>>Sep 21 15:45:10 ns1 imapd[23973]: Authenticated user=login-here 
>>host=host-here
>>Sep 21 15:45:10 ns1 imapd[23973]: Logout user=login-here host=host-here
>>Sep 21 15:45:12 ns1 imapd[23974]: Authenticated user=login-here 
>>host=host-here
>>Sep 21 15:45:12 ns1 imapd[23974]: Logout user=login-here host=host-here
>></syslog second login>
>>
>>This happens each time i close my browser, clear the cache and remove all 
>>cookies.
>>
>>Any idea?
>>
>>Ronnie Garcia.
>>