[imp] redirect.php based autologin again
   
    Liam Hoekenga
     
    liamr@umich.edu
       
    Mon, 22 Apr 2002 23:19:39 -0400
    
    
  
hey guys -
i'm installing the CVS version again, and my autologin stuff that works w/ 
Horde 2.0 / IMP 3.0 and Horde 2.1 / IMP 3.1 isn't working any longer.
The new version of redirect.php doesn't seem to be as interested in POSTs.
I had been doing this:
--- redirect.php        Mon Apr 15 16:29:33 2002
+++ UMlogin.php Mon Apr 15 16:29:46 2002
@@ -19,4 +19,14 @@
 }
 
+if (!isset($HTTP_POST_VARS['imapuser'])) {
+    $HTTP_POST_VARS['imapuser'] = $GLOBALS['HTTP_SERVER_VARS']['REMOTE_USER'];
+    $HTTP_POST_VARS['pass'] = 'cheese';
+    if ($GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'] == 'snre.mail.umich.edu') 
{
+       $HTTP_POST_VARS['server'] = 'snre';
+    } else {
+       $HTTP_POST_VARS['server'] = 'umce';
+       }
+    }
+
 $imapuser = Horde::getFormData('imapuser');
 $pass = Horde::getFormData('pass');
Which stopped working, so now I'm trying this:
--- redirect.php        Thu Apr 18 19:28:36 2002
+++ UMlogin.php Mon Apr 22 23:12:05 2002
@@ -19,4 +19,14 @@
 }
 
+if (!isset($imapuser)) {
+    $imapuser = $GLOBALS['HTTP_SERVER_VARS']['REMOTE_USER'];
+    $pass = 'cheese';
+    if ($GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'] == 'mojo.mail.umich.edu') 
{
+               $server = 'mojojojo';
+    } else {
+               $server = 'umce';
+    }
+}
+
 $imapuser = Horde::getFormData('imapuser');
 $pass = Horde::getFormData('pass');
I just get presented with the login screen.  (The password doesn't need to be 
set to a real value... we're using kerberos authentication, and c-client tries 
the ticket file first).
This is all the CVS stuff I checked out today.
thanks
Liam