[horde] Auto-login into Gollem

Jan Schneider jan at horde.org
Fri Aug 5 03:08:32 PDT 2005

Zitat von Amos Shapira <amos.shapira at gmail.com>:

> On 8/5/05, Jan Schneider <jan at horde.org> wrote:
>> Zitat von Amos Shapira <amos.shapira at gmail.com>:
>> > I got scripts/cookie_login.php from CVS but I don't understand how
>> > to use it. Could you please be more specific?
>> Do you have a specific question? The script is quite simple and
>> straight forward.
> Hi Jan,
> I am at home now so I setup a minimal configuration of horde 3.0.5 and
> gollem 1.0-rc2 on to provide you with the details (the platform is Debian
> Sarge on AMD Athlon, php4 from debian, horde and gollem as downloaded
> from horde.org).
> I use get_login.php for testing but the results are similar:
> I setup Gollem as the "application in charge of authentication" and
> manage to get gollem's login screen which logs me in when I type
> my linux username and password. That's just as a test to see that
> the rest of the system works.

You need to setup a Horde authentication, e.g. FTP, if using a FTP 
backend in Gollem. These scripts work only with Horde, not Gollem.

> Now where should I put the cookie_login.php (or get_login.php) and
> how do I weave it into the chain of processing so it will read cookies
> (or URL parameters, in the case of get_login.php)  with the
> credencials?

Put it inside the Horde directory.

> I can't call it directly under directory scripts/ because this 
> directory is not
> accessible from the web (.htaccess has "deny from all"). But its relative
> paths suggest that it can't be executed from Horde's root. Attempting to
> copy it to gollem's root and accessing "horde/gollem/cookie_login.php"
> I get an error page saying:

> If I try to copy it to Horde's root and execute it from there I get 
> (expected)
> errors about missing files:
> Warning: main(/var/www/horde/../lib/base.php): failed to open stream:
> No such file or directory in /var/www/horde/get_login.php on line 13

You need to adapt the paths, most important, HORDE_BASE.


Do you need professional PHP or Horde consulting?

More information about the horde mailing list