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.
LoadModule sspi_auth_module modules/mod_auth_sspi.so
<Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.
Allow from all
SSPIDomain ip or domainname
Appreciate any inputs /pointers towards the solution.