[horde] ldap + performance

Andreas Schulze sca at andreasschulze.de
Mon Jun 17 19:17:50 UTC 2013


Am 17.06.2013 13:52 schrieb Jan Schneider:
> >My userdatabase is an ldap server. So I have:
...
> >I noticed, horde contact the ldap-server on every page requested.
> >Even if it's /test.php
> >
> >Any suggestions to access ldap really only for authentication purposes?
> 
> This is not easily possible.
ok. So I try an other setup.

the webserver provide an url with basic auth. I could now do at the horde host:
"curl -4 http://user:pass@localhost/" and get "200 OK" or "401 Unauthorized"
That works.

Now I changed $conf['auth']['driver'] from 'ldap' to 'httpRemote'.
and $conf['auth']['params']['url'] = 'http://localhost';

Horde-5.1.0 from pear logs this error:
2013/06/17 20:52:05 [error] 5073#0: *1 FastCGI sent in stderr: "PHP Fatal error:  Call to a member function get() on a non-object in /usr/share/php/Horde/Auth/Http/Remote.php on line 58" while reading response header from upstream, client: fec0::10, server: horde.example.org, request: "POST /login.php HTTP/1.1", upstream: "fastcgi://unix:/tmp/fcgi-socket:", host: "horde.example.org", referrer: "https://horde.example.org/login.php"

Looks like a typo bug. Simple patch: remove an _
$ diff Remote.php.orig Remote.php
58c58
<         $response = $this->__params['client']->get($this->_params['url']);
---
>         $response = $this->_params['client']->get($this->_params['url']);
$

But now I get no login at all
2013-06-17T19:12:37+00:00 ERR: HORDE [horde] FAILED LOGIN for testuser [fec0::10] to Horde [pid 5121 on line 199 of "/horde/login.php"]
2013-06-17T19:12:37+00:00 DEBUG: HORDE [horde] Die Anmeldung ist fehlgeschlagen, weil Sie Ihren Benutzernamen oder Ihr Passwort falsch eingegeben haben. [pid 5121 on line 27 of "/usr/share/php/Horde

I just don't see any attempt to access http://localhost.
I deleted all caches, sessions & Autoloader Cache.

Hints?

Thanks
Andreas


More information about the horde mailing list