[horde] switching from https to http using imp?

Chris Hastie lists at oak-wood.co.uk
Mon Mar 10 01:01:29 PST 2003


On Mon, 10 Mar 2003, Hugo Bouckaert <hugo at geoinformex.com> wrote
>Is it possible to switch back to http between the person logging into 
>imp and the messages being displayed in the inbox? In other words, 
>entering a username and password to horde and imp to verify the account 
>with the mail server is done using https, but the page that is returned 
>i.e. inbox with mail messages switches back to http. From then on, all 
>further pages (such as composing a message etc.) are http, not https.

This can be achieved (in CVS HEAD at any rate) by having the user login 
from a custom form based on something like this:

<form action="https://server/horde/imp/redirect.php" method="post" name="implogin">

<input type="hidden" name="actionID" value="" />
<input type="hidden" name="url" value="http://server/horde/index.php?url=http://server/horde/imp/folders.php" />
<input type="hidden" name="mailbox" value="INBOX" />
<input type="hidden" name="frameset" value="true" />
<p>
<b>Username:</b><br />
<input type="text" name="imapuser" value="" />
</p>
<p>
<b>Password:</b><br />
<input type="password" name="pass" />
</p>
<input type="hidden" name="server" value="imap" />
<p>
<input type="submit" class="button" name="loginButton" value="Log in"  />
</p>
</form>

You'll need to have the following in horde/config/conf.php:

| $conf['use_ssl'] = 2;

A drawback is that browsers may throw up a warning about being 
redirected to an insecure connection.
-- 
Chris Hastie


More information about the horde mailing list