[imp] redirect.php based autologin again

Liam Hoekenga liamr@umich.edu
Tue, 23 Apr 2002 00:39:13 -0400


> You'll have to actually replace the Horde::getFormData('server') farther 
> down with the server you want.

With the server "key" or the server's hostname?  

if (!is_null($imapuser) && !is_null($pass)) {
    $frameset = Horde::getFormData('frameset');
    if (($reason = IMP::createSession($imapuser, $pass,
                                      array('server' => 'umce',

I've tried both 'umce' and the hostname from the record in config/servers.php, 
and I still get presented with the "Welcome to Horde" login screen.  I only 
have to log in once (horde/config/horde.php:$conf['auth']['driver'] is set to 
'application', and imp/config/conf.php:$conf['server']['server_list'] is set to 
'hidden').

The record in servers.php looks like:

$servers['umod'] = array(
    'name' => 'UMCE IMAP Service',
    'server' => substr ($GLOBALS['HTTP_SERVER_VARS']['REMOTE_USER'],0,1) .
                '.imap.itd.umich.edu',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => 'mail/',
    'namespace' => '',
    'maildomain' => 'umich.edu',
    'smtphost' => 'smtp.itd.umich.edu',
    'realm' => '',
    'preferred' => 'servername.umich.edu'
);

and my SERVER_NAME is set to the string in 'preferred' (tho, the real name of 
the server).

liam