Kyle <k...@attitia.com> writes:
> Kyle wrote:
>> Hi Sluggers,
>>
>> I have a prob I hope you can help with pls. And I realise it might be a
>> little outside a general Linux question. But if you have knowledge or are
>> able to point me to the best forum/newsgroup/whatever, I would be grateful.
>>
>> I have a situation where htpasswd access is being used to authenticate user
>> access to a particular URL by apache.
>>
>> Once authenticated, apache processes the relevant URL which is actually a
>> pass-off to Tomcat. What I need to do is get hold of the now-authenticated
>> user-name (i.e. the user name apache has just allowed through) and be able
>> to attach that username to the POST now being sent to Tomcat.

<Location "/example">
    # Make sure you use set, in all cases, so that a client can't fake
    # the header.
    RequestHeader set X-My-Auth-Id %{REMOTE_USER}e
</Location>

That should sort you right on out.

Regards,
        Daniel

-- 
✣ Daniel Pittman            ✉ dan...@rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to