Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This might not help too much, but I don't believe you need to do anything special to get this information. I'm running an Apache 2.2 installation with mod_auth_sspi and I use the REMOTE_USER environment variable to successfully get the information you're looking for. (For example, when I access one of the pages, REMOTE_USER is "MYDOMAIN\oeuftete".)</p> <p>I don't use the SSPIOfferBasic option which is the only substantial configuration difference, but I don't think that would matter. I also specify the options in the directive and not in a separate directive.</p> <p>I guess what I'm saying is, based on what you've given, it <em>should</em> work. So perhaps there's something else going on.</p> <hr> <p>Edit: Here's the basics of my httpd.conf.</p> <pre><code>LoadModule sspi_auth_module modules/mod_auth_sspi.so &lt;IfModule mime_module&gt; AddHandler cgi-script .pl &lt;/IfModule&gt; &lt;IfModule alias_module&gt; Alias /sotest "C:/Some/path/" &lt;/IfModule&gt; &lt;Directory "C:/Some/path"&gt; Options ExecCGI Order allow,deny Allow from all AuthName "Foo" AuthType SSPI SSPIAuth On SSPIAuthoritative On require valid-user &lt;/Directory&gt; </code></pre> <p>And a short test.pl in that directory.</p> <pre><code>#!perl -T # use CGI; my $q = CGI-&gt;new; print $q-&gt;header; print $q-&gt;start_html; print $ENV{'REMOTE_USER'}; print $q-&gt;end_html; </code></pre> <p>Here's the resulting page from going to sotest/test.pl:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"&gt; &lt;head&gt; &lt;title&gt;Untitled Document&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt; &lt;/head&gt; &lt;body&gt; MYDOMAIN\oeuftete &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload