Search filter script

John Morrison john.morrison at uadm.uu.se
Mon May 9 15:34:06 EDT 2016


Thanks Daniel for the pointer there! It worked out like a treat!!!!

Great, thanks

/John




________________________________________
From: users [users-bounces at shibboleth.net] on behalf of Daniel Fisher [dfisher at vt.edu]
Sent: Tuesday, May 03, 2016 10:51 PM
To: Shib Users
Subject: Re: Search filter script

On Mon, May 2, 2016 at 7:51 PM, Cantor, Scott <cantor.2 at osu.edu<mailto:cantor.2 at osu.edu>> wrote:

And my suggestion is not workable either, I keep forgetting the Filter templates aren't Velocity-based (yet, there's a RFE for that, IDP-827).

Not for authentication, but they are velocity based for attribute resolution.
So you could try the following velocity-fu in your filter template:

    <FilterTemplate>
        <![CDATA[
            (|#foreach ($val in ${attributeName})(ATTRIBUTE-X=$val)#end)
        ]]>
    </FilterTemplate>


Note the filter expression begins with "(|" to OR each value and ends with ")" to close the expression.

--Daniel Fisher


More information about the users mailing list