remote RequestMapper

Gilbert, Alistair Alistair.Gilbert at basware.com
Thu Oct 4 04:35:58 EDT 2012


Thanks, that's great

-----Original Message-----
From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net] On Behalf Of Cantor, Scott
Sent: 04 October 2012 03:21
To: Shib Users
Subject: Re: remote RequestMapper

On 10/3/12 5:29 PM, "Gilbert, Alistair" <Alistair.Gilbert at basware.com>
wrote:

>I wanted to try out moving the RequestMap to an external file.
> 
>The wiki implies that all I need to do is something like this in the
>Shibboleth2.xml:
> 
><RequestMapper type="Native" path="Shib2RequestMap.xml" />

Yes, that should work.

> 
>This would then grab the requestmap from the file Shib2RequestMap.xml 
>file held in etc\shibboleth
> 
>In the Shib2RequestMap.xml I have something like this:
> 
><RequestMap>
>                <Host name="xxx.com">
>                                <Path name="Login">
>                                                <Query name="forms"
>regex="1">
>                                                                <Query 
>name="tid" regex="ASTC001" authType="shibboleth" requireSession="true" />
>                                                </Query>
>                                </Path>
>                </Host>
></RequestMap>

That's not valid XML. You don't have a default namespace bound to the configuration namespace from the SP config schema. Adding xmlns="..." with the appropriate namespace URI in the root element should make it valid, and then I would imagine it should work.

> 
>The exact same RquestMap, when placed as a subnode to the RequestMapper 
>directly in the Shibboleth2.xml file works fine.

Because the default namespace is declared outside that.

-- Scott


--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net




More information about the users mailing list