PHP does not see environmental variables pertaining to Shib but Perl does
Hough, Kenneth P
kenneth.phough at WPI.EDU
Thu May 31 19:01:12 BST 2012
Hi,
I am having trouble with PHP5 trying to access env variables pertaining to Shib. I've search the web extensively to find an answer but nothing that pertains to our problem.
When I do:
print_r($_server)
I hope to see something like the following (http://xteams.oit.ncsu.edu/iso/shibboleth/sp-setup)
[Shib-Application-ID] => default
[Shib-Session-ID] => _6c45a07c8bc73190121212121221b7
[Shib-Identity-Provider] => https://shib.ncsu.edu/idp/shibboleth
[Shib-Authentication-Instant] => 2009-05-27T20:00:00.101Z
[Shib-AuthnContext-Decl] => urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
[affiliation] => member at ncsu.edu;staff at ncsu.edu<mailto:member at ncsu.edu;staff at ncsu.edu>
[eppn] => XXXXXX at ncsu.edu<mailto:XXXXXX at ncsu.edu>
[unscoped-affiliation] => member;staff
...
[REMOTE_USER] => XXXXXX at ncsu.edu<mailto:XXXXXX at ncsu.edu>
But instead I only see everything else like http_host, script_name php_self, etc.... The only resemblance of Shib is in the cookie with a unique name.
A CGI script that does the same thing was able to display all the information including Shib variables and remote_user.
Any help would be very much appreciated so that I can access shib variables from php.
Thanks in advance!
Kenneth
Programming Assistant, WPI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20120531/67ae60de/attachment.html
More information about the users
mailing list