[imp] Bypass IMP login prompt
Alan Pater
alan@celasmaya.edu.gt
Thu, 09 Nov 2000 14:17:37 -0600 (CST)
I want to do something similiar, except only for one user, the
guest user on our system. What I'm thinking of is a way to tell the
browser to bring up the IMP compose window when someone clicks on a
mail link in a web page. They would then be able to enter their
personal email address in the from field, and away they go.
Mensaje citado por: Chad Lieberman <chad@dotsalud.com>:
> HI,
>
> I'm trying to bypass IMP's login screen. My users are
> already authenticated - using php4 sessions - and I have
> their corresponding $username & $password which
> de-neccessitates a second login prompt.
>
> I've met with limited sucess by bypassing most of the
> login.php code with this:
>
> login.php3
> --------------
>
> /* if there is an existing session, redirect to the mailbox
> */
> page_open(array('sess' => 'HordeSession'));
> <?
> header('Location: ' . $sess->url('mailbox.php3') .
> "?mailbox=INBOX&actionID=". IMP_LOGIN . "&imapuser=" .
> $username . "&pass=$password" );
> exit;
> ?>
>
> Yes yes, this seems absurd and is certainly quite clunky
> but it works (seems kinda slow?). I'm wondering if there
> is a better way to go about bypassing the login prompt, i
> don't wanna start fudging around too deeply. (Ew, gross)
>
> thanks,
> Chad Lieberman
> chad@dotsalud.com
>
>
>
>
>
>
>
- - - - - - - - - - - - - - - - - - - - - - - -
www.celasmaya.edu.gt
- - - - - - - - - - - - - - - - - - - - - - - -