On November 5, 2012 6:32 , Martin Drescher <drescher@xxxxxxxx> 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@xxxxxxxxxxx --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx