<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Hi,<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>I am having trouble with PHP5 trying to access env variables pertaining to Shib.&nbsp; I&#8217;ve search the web extensively to find an answer but nothing that pertains to our problem.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>When I do:<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>print_r($_server)<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>I hope to see something like the following (<a href="http://xteams.oit.ncsu.edu/iso/shibboleth/sp-setup">http://xteams.oit.ncsu.edu/iso/shibboleth/sp-setup</a>)<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>[Shib-Application-ID] =&gt; default<o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [Shib-Session-ID] =&gt; _6c45a07c8bc73190121212121221b7<o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [Shib-Identity-Provider] =&gt; <a href="https://shib.ncsu.edu/idp/shibboleth">https://shib.ncsu.edu/idp/shibboleth</a><o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [Shib-Authentication-Instant] =&gt; 2009-05-27T20:00:00.101Z<o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [Shib-AuthnContext-Decl] =&gt; urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport<o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [affiliation] =&gt; <a href="mailto:member@ncsu.edu;staff@ncsu.edu">member@ncsu.edu;staff@ncsu.edu</a><o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [eppn] =&gt; <a href="mailto:XXXXXX@ncsu.edu">XXXXXX@ncsu.edu</a><o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [unscoped-affiliation] =&gt; member;staff<o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp; ...<o:p></o:p></p><p class=MsoPlainText>&nbsp;&nbsp;&nbsp; [REMOTE_USER] =&gt; <a href="mailto:XXXXXX@ncsu.edu">XXXXXX@ncsu.edu</a><o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>But instead I only see everything else like http_host, script_name php_self, etc....&nbsp; The only resemblance of Shib is in the cookie with a unique name.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>A CGI script that does the same thing was able to display all the information including Shib variables and remote_user.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Any help would be very much appreciated so that I can access shib variables from php.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>Thanks in advance!<o:p></o:p></p><p class=MsoPlainText>Kenneth<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoNormal>Programming Assistant, WPI<o:p></o:p></p></div></body></html>