Hi
I need to retrieve the username of the remote user accessing my intranet site. I have installed mod_auth_sspi.so and included it to the httpd.conf file in my apache2.2 server. I am trying to retrieve the username using $cgi->user_name() and $cgi->remote_user() and also checking in the ENV variable for REMOTE_USER and AUTH_USER. None returns it. I am not sure if my SSPI is functioning either. Does this method of authentication need mod_perl installed. I have got Active State perl v5.16 on Windows 2008 server. I don't see a active mod_perl build for this version of perl in activestate home. Appreciate any pointers.
My code in my httpd.conf file is as follows.
<IfModule !mod_auth_sspi.c>
LoadModule sspi_auth_module modules/mod_auth_sspi.so
</IfModule>
</Directory>
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.
+2/htdocs/TestWeb/">
<Files TestWeb.pl>
Options FollowSymLinks
Order allow,deny
Allow from all
AuthName "TestWeb"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic on
Require valid-user
SSPIDomain ip or domainname
</Files>
</Directory>
Appreciate any inputs /pointers towards the solution.
Thanks!!