Hello Apache/Win Masters:
I really could use some help in solving what appears to be a trivial issue. In summary, I want to know the Window's loginID for the user accessing a Perl .cgi running in Apache on a Windows environment.
Here's my basic Apache2 conf additions:
---- begin httpd.conf -----
...
LoadModule sspi_auth_module modules/mod_auth_sspi.so
...
<IfModule mod_auth_sspi.c>
<Location "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AuthName "A Protected Place"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
#SSPIBasic On
SSPIOfferBasic On
#SSPIDomain On
#SSPIBasicPreferred
#SSPIUsernameCase lower
require valid-user
</Location>
</IfModule>
...
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
...
---- end httpd.conf -----
In addition, I've also enabled SSL on my machine using the excellent instructions at: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup.html#tsvn-serversetup-apache-7
The site above calls for loading the Apache module mod_auth.so, but I can't find it in my default Apache2 installation. Also, As you can see, I've manually added the mod_auth_sspi-1.0.4-2.2.2 module to my Apache2 environment.
Now, when I try both http://localhost/cgi-bin/test.cgi AND https://localhost/cgi-bin/test.cgi, I don't see anything in the way of a REMOTE_USER in the http/environment variables. I know the SSL is working because the https call displays a ton of SSL variables. Also, I don't have a requirement for SSL, but am only using it since the link above says it is required to get the Windows login info.
I would really appreciate any insight. I am happy to share the httpd.conf file in full if that is helpful. Basically, to reiterate, all I'm looking for is a way to capture the Windows loginID in my Perl .cgi on a Windows/Apache2.2 hosting environment.
Many many thanks in advance for everyone's help,
Saker Ghani