Login config problem: Horde 1.3.5-cvs OK, Imp 2.3.7-cvs not

David Peoples davidp@touringcyclist.com
Thu, 25 Oct 2001 14:27:05 -0500


I need help with IMP authentication, for the latest Horde 1.3.5-cvs/IMP
2.3.7-cvs version (updated 2001-10-25 12:20 CDT). It looks like the login
process works for horde, but fails for IMP. I'm using imap authentication.

I have IMP 2.0.11 working fine for several years now, other imap clients work
fine with the imap server. I think the PHP4 setup is working, the horde/test.php
shows no errors and the session variable increments on page refresh as it
should. PHP is version 4.0.6 and PEAR is from the tar file at horde.org. The
only 'module capabilities' flagged 'no' on the test.php page are LDAP support
and PostgreSQL support (I'm using MySQL). The imap server I'm testing against is
an old version of Cyrus-IMAPD, but I've also tried a current version of
Courier-IMAP with the same results.

Viewing http://horde.tc.local/horde/index.php displays a login screen. Logging
in here appears to work, and displays a screen that says "Welcome Davidp", a
link to "Mail" and three icons at the bottom of the screen (horde, Mail,
Addressbook; I turned the others off in horde/config/registry.php).

Clicking on the "Mail" link brings back what looks like the initial login
screen. Logging in here fails, or anyway gets in a loop where the login screen
always returns with blank fields for Username and Password.

Any hints? I've listed the config settings that seem to affect authentication
below, as well as log entries for an attempted login session.

In horde/config/horde.php:
$conf['auth']['driver'] = 'imap';
$conf['auth']['params']['dsn'] = '{tcmail.tc.local/imap:143}INBOX';

In horde/imp/config/servers.php:
$servers['tcmail'] = array(
    'name' => 'TCMail IMAP Server',
    'server' => 'tcmail.tc.local',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => '',
    'namespace' => 'INBOX.',
    'maildomain' => 'touringcyclist.com',
    'realm' => 'touringcyclist.com',
    'preferred' => '',
    'smtphost' => 'tcmail.tc.local'
);

Are there other configuration settings I've missed?

------------------------------------------------------------------
Here are details on the failed login attempt.

Initial horde login, screen looks like this:

----
Please log in
Username ____________
Password ____________
[Log in]
----

I type in my username, password, and click on 'Log in'.

Output in /var/log/messages:
Oct 25 13:01:32 tcmail imapd[22379]: login: tcmail.tc.local[192.168.3.1] davidp
CRAM-MD5 User logged in

Screen now says:
----
Welcome Davidp             (Logout button)

Mail (link)
Log in to mail (link)

(Icons/links for) horde mail Addressbook
----

I click on the 'Mail' link.

The screen returns to the initial login screen. (Username text, password text,
log in button.)

I type in my username, password, and click on 'log in'.

Output in /var/log/messages:
Oct 25 13:03:45 tcmail imapd[22382]: login: tcmail.tc.local[192.168.3.1] davidp
CRAM-MD5 User logged in

Screen returns to the initial login screen. No error message.

I'm now in the loop, and further entries of username and password return again
to the initial login screen.

Here are corresponding entries from the apache access.log file.

Ask for page http://horde.tc.local/horde/:
192.168.3.60 - - [25/Oct/2001:13:12:25 -0500] "GET /horde/ HTTP/1.0" 200 428 "-"
"Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; MSNIA)"
192.168.3.60 - - [25/Oct/2001:13:12:25 -0500] "GET /horde/login.php HTTP/1.0"
200 2719 "http://horde.tc.local/horde/" "Mozilla/4.0 (compatible; MSIE 5.5;
Windows NT 4.0; MSNIA)"
192.168.3.60 - - [25/Oct/2001:13:12:25 -0500] "GET /horde/menu.php HTTP/1.0" 200
1375 "http://horde.tc.local/horde/" "Mozilla/4.0 (compatible; MSIE 5.5; Windows
NT 4.0; MSNIA)"

After initial login:
192.168.3.60 - - [25/Oct/2001:13:13:15 -0500] "POST /horde/login.php HTTP/1.0"
200 1593 "http://horde.tc.local/horde/login.php" "Mozilla/4.0 (compatible; MSIE
5.5; Windows NT 4.0; MSNIA)"

After clicking on "Mail" link:
192.168.3.60 - - [25/Oct/2001:13:14:01 -0500] "GET /horde/imp/login.php
HTTP/1.0" 302 1 "http://horde.tc.local/horde/login.php" "Mozilla/4.0
(compatible; MSIE 5.5; Windows NT 4.0; MSNIA)"
192.168.3.60 - - [25/Oct/2001:13:14:01 -0500] "GET
/horde/login.php?url=%2Fhorde%2Fimp%2Flogin.php HTTP/1.0" 200 2739
"http://horde.tc.local/horde/login.php" "Mozilla/4.0 (compatible; MSIE 5.5;
Windows NT 4.0; MSNIA)"

After second login:
192.168.3.60 - - [25/Oct/2001:13:14:54 -0500] "POST /horde/login.php HTTP/1.0"
302 0 "http://horde.tc.local/horde/login.php?url=%2Fhorde%2Fimp%2Flogin.php"
"Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; MSNIA)"
192.168.3.60 - - [25/Oct/2001:13:14:54 -0500] "GET /horde/imp/login.php
HTTP/1.0" 302 1
"http://horde.tc.local/horde/login.php?url=%2Fhorde%2Fimp%2Flogin.php"
"Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; MSNIA)"
192.168.3.60 - - [25/Oct/2001:13:14:54 -0500] "GET
/horde/login.php?url=%2Fhorde%2Fimp%2Flogin.php HTTP/1.0" 200 2739
"http://horde.tc.local/horde/login.php?url=%2Fhorde%2Fimp%2Flogin.php"
"Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; MSNIA)"


---
David Peoples
The Touring Cyclist, 11816 St. Charles Rock Road, Bridgeton, MO 63044
tel: 314-739-4648  fax: 314-739-4972
davidp@touringcyclist.com  http://www.touringcyclist.com