<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><div>I took a break from this in an attempt to avoid going insane, so now that I'm prepared for eminent&nbsp;mental collapse, I'm back.</div><div><br></div><div>Due to my configuration I would like to proceed with the Query feature within the RequestMapper in the shibboleth2.xml file, but I seem to be able to get one app or the other working just fine, but not both. &nbsp;It seems only "default" works and it's got to be something with the way I'm defining things.</div><div><br></div><div><div>Right now my RequestMapper definition looks something like this:</div><div><br></div><div>&nbsp; &lt;RequestMapper type="Native"&gt;</div><div>&nbsp; &nbsp; &lt;RequestMap applicationId="default"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;Host name="test.domain.com" &gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;PathRegex regex="ssoshib"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Query name="p" regex="1001:901" authType="shibboleth" requireSession="true" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/PathRegex&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/Host&gt;</div><div>&nbsp; &nbsp; &lt;/RequestMap&gt;</div><div>&nbsp; &lt;/RequestMapper&gt;</div><div><br></div><div>I need to be able to distinguish between two applications by the query. &nbsp;I've searched extensively but have not been able to find any examples on how this should be done. &nbsp;My first attempt (which failed) looks something like this:</div><div><br></div><div>&nbsp; &lt;RequestMapper type="Native"&gt;</div><div>&nbsp; &nbsp; &lt;RequestMap applicationId="default"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;Host name="test.domain.com" &gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;PathRegex regex="ssoshib"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Query name="p" regex="1001:901" authType="shibboleth" requireSession="true" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/PathRegex&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;PathRegex regex="ssoshib" applicationId="app2"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Query name="p" regex="1006:901" authType="shibboleth" requireSession="true" /&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/PathRegex&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/Host&gt;</div><div>&nbsp; &nbsp; &lt;/RequestMap&gt;</div><div>&nbsp; &lt;/RequestMapper&gt;</div><div><br></div><div>I then proceed with the ApplicationDefaults section where again I'm confused about how things work. &nbsp;From the documentation it looks like I should declare the defaults first, then setup an ApplicationOverride section. &nbsp;Is ApplicationOverride defined within the ApplicationDefaults section or outside of those tags altogether?</div><div><br></div><div>For instance:</div><div><br></div><div>&nbsp; &lt;ApplicationDefaults...</div><div>&nbsp; &nbsp; ... stuff...</div><div>&nbsp; &nbsp; &lt;ApplicationOverride...</div><div>&nbsp; &nbsp; ... stuff...</div><div>&nbsp; &nbsp; &lt;/ApplicationOverride&gt;</div><div>&nbsp; &lt;/ApplicationDefaults&gt;</div><div><br></div><div>- or -</div><div><br></div><div>&nbsp; &lt;ApplicationDefaults...</div><div>&nbsp; &nbsp; ... stuff...</div><div>&nbsp; &lt;/ApplicationDefaults&gt;</div><div>&nbsp; &lt;ApplicationOverride...</div><div>&nbsp; &nbsp; ... stuff...</div><div>&nbsp; &lt;/ApplicationOverride&gt;</div><div><br></div><div>Unfortunately I found examples both ways and I know one has to be wrong so I figured I'd ask anyway. &nbsp;I don't expect hand-holding (though I'll graciously accept it). &nbsp;Even just pointing me towards relevant examples would help as I feel like I'm randomly "trying things" at this point.</div><div><br></div></div><div><br></div><div>Best regards,<br><br>Kevin F. La Barre<br>Senior IT Engineer<br>AssetWorks, Inc.<br>512-347-7400 x1860<br><div><br></div><font color="#990099">-----users-bounces@shibboleth.net wrote: -----<br><br></font><blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:#000000 2px solid;margin-right:0px">To: "users@shibboleth.net" &lt;users@shibboleth.net&gt;<br>From: "Cantor, Scott" &lt;cantor.2@osu.edu&gt;<br>Sent by: users-bounces@shibboleth.net<br>Date: 11/02/2011 10:23AM<br>Subject: Re: Distiguishing between apps by URL parameter?<br><br><font face="Courier New,Courier,monospace" size="3">On 11/2/11 11:00 AM, "Kevin LaBarre" &lt;Kevin.LaBarre@Assetworks.com&gt; wrote:<br><br>&gt;These two URLs point to different applications. &nbsp;The issue is that I<br>&gt;cannot use the host, nor the rest of the URL to differentiate between<br>&gt;applications for Shibboleth purposes. &nbsp;I would appreciate any ideas in<br>&gt;how I can make this work. &nbsp;I have Shibboleth working with a single<br>&gt;customer just fine, so I know I have the basics configured correctly.<br>&gt;Thanks in advance!<br><br>I don't know if Apache can apply settings based on the query string or<br>not. If it can, that's the safest approach. Otherwise, there is a &lt;Query&gt;<br>feature in the RequestMap, as documented. It can be very dangerous to use<br>because query string parameters are case sensitive, but many apps don't<br>treat them that way, so you can get around the mapping in some cases.<br><br>It also depends what the failure scenario is. If all you do is use it to<br>assign the override, and a failure to do that doesn't hurt anything, then<br>it's probably fine.<br><br>-- Scott<br><br>--<br>To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net<br></font>
</blockquote><br></div></FONT>