httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Drescher <dresc...@snafu.de>
Subject [users@httpd] Setting REMOTE_USER to %{SSL:HTTP_SSL_CLIENT_S_DN_CN}
Date Mon, 05 Nov 2012 11:32:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Folks.

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?

Thanks, Martin

- -- 
 Martin Drescher
 GnuPG Key Fingerprint, KeyID '4FBE451A':
 '2237 1E95 8E50 E825 9FE8  AEE1 6FF4 1E34 4FBE 451A'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCXo8MACgkQb/QeNE++RRoyCACfdJoNvjSH/r6IruyMkQBini1B
xicAn0KJ9oknXSV8Y0Dc+zaEdcmWFals
=EbRz
-----END PGP SIGNATURE-----

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


Mime
View raw message