[horde] Horde4 how to get apache basic auth to provide username and password to Horde

Ralf Lang lang at b1-systems.de
Wed Feb 22 07:00:01 UTC 2012


Am 21.02.2012 18:43, schrieb Xavier Montagutelli:
> On Tuesday 21 February 2012 15:54:23 Paul Harmsworth wrote:
>> Hi,
>>
>> I am trying to solve the following:
>> Apache requires a password for authenticaion for my website. Is it possible
>> for Horde to reuse the username and password already provided? I expect
>> that it is but I cannot find out how. I would like to avoid users having
>> to logon once for Apache an then again for Horde.
>
> I think it should be easy, Horde is able to reuse the USER already
> authenticated by Apache, transmitted by the php superglobal _SERVER variable.
>
> The "HTTP (Basic Authenticaztion...)" plugin does this. These plugins are
> located under the PEAR repository, under Horde/Auth/
>
> Perhaps a few modifications would be necesary depending on your needs ?
>
> HTH,

The HTTP Auth driver wants an own file. I already postet a small script 
which allows http-auth based login without any modification of horde but 
rather passes http auth to the used auth driver (ldap, imap, whatever). 
There's also an autologin script shipped with horde4 but I think it 
didn't work out of the box. I'll check that later and probably adapt 
what's broken.


More information about the horde mailing list