Lasso 8.5 and Apache 2 Environment Variables (mod_ssl)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Lasso 8.5 and Apache 2 Environment Variables (mod_ssl)

Duncan S Kincaid
Is there any way for lasso to gain access to the Apache environment  
variables (specifically, mod_ssl related--eg.  
$ENV{SSL_CLIENT_S_DN_Email})?

thanks much,
dk


|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
duncan kincaid
cron | mit school of architecture and planning





--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: Lasso 8.5 and Apache 2 Environment Variables (mod_ssl)

Bil Corry-3
Duncan S Kincaid wrote on 10/9/2008 8:59 AM:
> Is there any way for lasso to gain access to the Apache environment
> variables (specifically, mod_ssl related--eg. $ENV{SSL_CLIENT_S_DN_Email})?

Not directly.  Lasso 9 may provide direct access in the future, but for Lasso 8.5 you'll have to put any Apache environment vars you want into a custom header and use [client_headers] within Lasso to extract the value.

An example of copying an env var to a custom header within Apache:

    # make sure mod_headers is loaded
    LoadModule headers_module modules/mod_headers.so

    # if exists, add "SSL_CLIENT_S_DN_Email" to a custom header called "X-SSL_CLIENT_S_DN_Email"
    RequestHeader set X-SSL_CLIENT_S_DN_Email %{SSL_CLIENT_S_DN_Email}e env=SSL_CLIENT_S_DN_Email


You can read more about mod_headers here:

        http://httpd.apache.org/docs/2.0/mod/mod_headers.html#header


- Bil


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: Lasso 8.5 and Apache 2 Environment Variables (mod_ssl)

Duncan S Kincaid
bil

brilliant! thanks so much.
i and countless others you have helped are greatly indebted to you.

best
dk

On Oct 9, 2008, at 11:33 AM, Bil Corry wrote:

> Duncan S Kincaid wrote on 10/9/2008 8:59 AM:
>> Is there any way for lasso to gain access to the Apache environment
>> variables (specifically, mod_ssl related--eg.  
>> $ENV{SSL_CLIENT_S_DN_Email})?
>
> Not directly.  Lasso 9 may provide direct access in the future, but  
> for Lasso 8.5 you'll have to put any Apache environment vars you  
> want into a custom header and use [client_headers] within Lasso to  
> extract the value.
>
> An example of copying an env var to a custom header within Apache:
>
>    # make sure mod_headers is loaded
>    LoadModule headers_module modules/mod_headers.so
>
>    # if exists, add "SSL_CLIENT_S_DN_Email" to a custom header  
> called "X-SSL_CLIENT_S_DN_Email"
>    RequestHeader set X-SSL_CLIENT_S_DN_Email %
> {SSL_CLIENT_S_DN_Email}e env=SSL_CLIENT_S_DN_Email
>
>
> You can read more about mod_headers here:
>
> http://httpd.apache.org/docs/2.0/mod/mod_headers.html#header
>
>
> - Bil
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>


|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
duncan kincaid
cron | school of architecture and planning





--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/