[horde] Re: External Login Page
cron at odi.com.br
cron at odi.com.br
Wed Mar 2 06:06:38 PST 2005
Could not make the example script to work, I believe it is for older version
of HORDE/IMP, I´m posting the page I could get it to work based on the
example script and the login page of HORDE. Still can´t make it work across
domains.
<?php
@define('AUTH_HANDLER', true);
@define('HORDE_BASE', '/dir/to/horde');
require_once HORDE_BASE . '/lib/base.php';
require_once HORDE_BASE . '/lib/Horde/Menu.php';
require_once HORDE_BASE. '/lib/Horde/Secret.php';
/* Set up the password encryption token. */
Secret::setKey('auth');
/* Use the first server defined in servers.php. */
// CUSTOMIZE THIS
$url = '/' . $registry->get('initial_page','horde');
?>
<head>
<title>
</title>
<body>
<form action="login.php" method="post">
<input type="hidden" name="server" value="servername" />
<input type="hidden" name="protocol" value="imap/notls" />
<input type="hidden" name="port" value="143" />
<input type="hidden" name="folders" value="" />
<input type="hidden" name="namespace" value="INBOX" />
<input type="hidden" name="maildomain" value="" />
<input type="hidden" name="realm" value="" />
<input type="hidden" name="url" value="" />
<input name="horde_user" type="text" id="horde_user" size="15"
maxlength="20"></td>
<input name="horde_pass" type="password" id="horde_pass" size="15"
maxlength="20">
</form>
</body>
</head>
----- Original Message -----
From: "Jan Schneider" <jan at horde.org>
To: <horde at lists.horde.org>
Sent: Monday, February 28, 2005 6:43 PM
Subject: [horde] Re: External Login Page
> Zitat von cron at odi.com.br:
>
>> I am using horde 3.0 and trying to create a external login page in
>> my company website.
>>
>>
>> on domain I have the page index.htm
>>
>> <form name="horde_login" method="post"
>> action="http://anmotherdomain/webmail/login.php">
>> <input type="hidden" name="url" value="" />
>> <input type="hidden" name="ie_version" value="" />
>> <input type="hidden" name="new_lang" value="pt_BR">
>> <input name="horde_user" type="text" class="inputLogin"
>> id="horde_user" size="30">
>> <input name="horde_pass" type="password" class="inputLogin"
>> id="horde_pass" size="30">
>> </form>
>
> That doesn't work, see imp/scripts/custom_login.php for an example.
>
> Jan.
>
> --
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
More information about the horde
mailing list