On Fri, Jun 02, 2000 at 02:12:39PM +0300, Victor STANESCU wrote:
> If some user authenticates by a key, using a simple script like the
> classical printenv in apache, i can see its name in the environment
> variable SSL_CLIENT_S_DN_CN.
> The problem is that using php, this variable is not set.
> How can i know the name of the user that authenticated itself by a ssl
> key, inside a php script?
>
You have to make sure that SSLOptions +StdEnvVars is set for your php
page (http://www.modssl.org/docs/2.6/ssl_reference.html#ToC21)
- by default it is only set for /cgi-bin/ and specific page types:
<Files ~ "\.(cgi|shtml)$">
SSLOptions +StdEnvVars
</Files>
For you that could be changed to something like:
<Files ~ "\.(php3)$">
SSLOptions +StdEnvVars
</Files>
vh
Mads Toftum
--
`Darn it, who spiked my coffee with water?!' - lwall
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]