[shib_auth] Problem with server variables

Michael Goldblatt mgoldbla at uw.edu
Fri Jul 6 00:41:47 CEST 2012


Hello -

I've recently installed Drupal 7.14 on an IIS 6 server, along with 
Shibboleth. I seem to be having the same sort of problem as described in 
this thread:
https://listserv.niif.hu/pipermail/shib_auth/2012-January/000101.html
However, the solution that Chris posted didn't work for me - I can't 
seem to get past the Access Denied error and the $_SESSION and $_SERVER 
variables do not show either my username or the IdP entityId. When I run 
a C# file that dumps all of my server variables, they are definitely 
listed there as:

HTTP_REMOTEUSER = myusername
HTTP_SHIBIDENTITYPROVIDER = urn:mace:incommon:washington.edu

Modifying the code in shib_auth.module that Chris posted in his thread 
with my IdP entityID variable has had no effect. The changes I made are 
as follows:

function shib_auth_get_idp() {
   if (isset($_SERVER['Shib-Identity-Provider']))
     return $_SERVER['Shib-Identity-Provider'];
   elseif (isset($_SERVER['Shib_Identity_Provider']))
     return $_SERVER['Shib_Identity_Provider'];
   elseif (isset ($_SERVER['HTTP_SHIB_IDENTITY_PROVIDER']))
     return $_SERVER['HTTP_SHIB_IDENTITY_PROVIDER'];
   elseif (isset ($_SERVER['HTTP_SHIBIDENTITYPROVIDER']))
     return $_SERVER['HTTP_SHIBIDENTITYPROVIDER'];
   return '';
} //function shib_auth_get_idp


and

function shib_auth_session_isShib2x() {
   if (shib_auth_session_valid()) {
     return (isset($_SERVER['Shib-Identity-Provider']) || 
isset($_SERVER['Shib_Identity_Provider']) || 
isset($_SERVER['HTTP_SHIBIDENTITYPROVIDER']));
   }


Is there someplace else I should be looking to get this working? I 
restarted both the IIS service and the Shibboleth service to no avail.

Thanks,

Michael

-- 
________________________________________________
Michael Goldblatt
Senior Computer Specialist
University of Washington
Departments of Economics, Sociology & Philosophy




More information about the shib_auth mailing list