You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2001/08/28 02:09:48 UTC
[PATCH] add authenticated user details to environment
Hi all,
This patch allows user data belonging to a basic-authenticated user to
be added to the environment for the benefit of mod_include. This makes
it possible to embed user details in a page like so:
Hello <!--#echo var="AUTHENTICATE_CN"-->, your telephone number is
<!--#echo var="AUTHENTICATE_TELEPHONENUMBER"-->.
This first patch is for mod_ldap and mod_auth_ldap, I intend making
similar functionality for the other auth modules.
Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."
Re: [PATCH] add authenticated user details to environment
Posted by Graham Leggett <mi...@sharp.fm>.
Ian Holsman wrote:
> just wondering if you wanted to set the 'main' subprocess table instead
> of a child when 'auth_ldap' gets called for a subrequest.
> currently you are only setting the subrequests subprocess table.
How would I do this?
Does Apache not handle the merging of the main and subrequest
environments? Or do I have to do it? I assume this is done by adding the
variables to r->main->subprocess_env if r->main exists, otherwise
r->subprocess_env.
Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."
Re: [PATCH] add authenticated user details to environment
Posted by Ian Holsman <Ia...@cnet.com>.
On Mon, 2001-08-27 at 17:09, Graham Leggett wrote:
> Hi all,
hi.
just wondering if you wanted to set the 'main' subprocess table instead
of a child when 'auth_ldap' gets called for a subrequest.
currently you are only setting the subrequests subprocess table.
>
> This patch allows user data belonging to a basic-authenticated user to
> be added to the environment for the benefit of mod_include. This makes
> it possible to embed user details in a page like so:
>
> Hello <!--#echo var="AUTHENTICATE_CN"-->, your telephone number is
> <!--#echo var="AUTHENTICATE_TELEPHONENUMBER"-->.
>
> This first patch is for mod_ldap and mod_auth_ldap, I intend making
> similar functionality for the other auth modules.
>
> Regards,
> Graham
--
Ian Holsman
Performance Measurement & Analysis
CNET Networks - 415 364-8608