[#8758] Permit Basic Authentication using CGI
Summary Permit Basic Authentication using CGI
Queue Horde Framework Packages
Queue Version Git master
Type Enhancement
State Accepted
Priority 1. Low
Owners
Requester jon@spriggs.org.uk
Created 2009-12-07 (3945 days ago)
Due
Updated 2010-01-26 (3895 days ago)
Assigned
Resolved
Milestone
Patch Yes

Comments
jon@spriggs.org.uk 2009-12-07 20:52:50
By applying the attached patch to /framework/Rpc/lib/Horde/RPC.php and 
adding in to the horde website root's .htaccess the following line

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

This patch is in line with the document at 
http://wiki.horde.org/HTTPAuthHowTo which states this will permit a 
CGI-BIN'd instance of PHP to convert the basic authentication to a 
variable it can use.

Alternatively, it may be worth updating the wiki to show a better 
line, if (for example) the existing code I've patched is already using 
a line like:

RewriteRule .* - [E=Authorizaton:%{HTTP:Authorization},L]

Either way, this should probably be documented somewhere in the docs 
to show this could be useful.

Jan Schneider <jan@horde.org> 2010-01-26 22:34:18
We should use Authorization, because that's what we use everywhere else.