Re: Setting REMOTE_USER to %{SSL:HTTP_SSL_CLIENT_S_DN_CN}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux