httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Montague <m...@catseye.org>
Subject Re: [users@httpd] Setting REMOTE_USER to %{SSL:HTTP_SSL_CLIENT_S_DN_CN}
Date Mon, 05 Nov 2012 13:35:49 GMT
On November 5, 2012 6:32 , Martin Drescher <drescher@snafu.de> wrote:
> I would like to set the REMOTE_USER environment to the value of
> %{HTTP_SSL_CLIENT_S_DN_CN}.
> After reading the fine manual e few time I think it should work with that:
>
>    RewriteEngine On
>    RewriteCond %{SSL:HTTP_SSL_CLIENT_S_DN_CN} (.+)
>    RewriteRule ^.*$ - [E=REMOTE_USER:$1]
>
> Tried some variations, but it does not :-(
> Could someone help me out with this?

Remove those mod_rewrite directives.  Instead, use

SSLUserName SSL_CLIENT_S_DN_CN


See https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslusername


--
   Mark Montague
   mark@catseye.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message