<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>In my setup I assign every known &nbsp;values of ePe to all users &nbsp;in the resolver and then attempt to filter the values based on some other attributes value.</div><div><br></div><div><div>But I think what I'm trying to do cannot be achieved due the limitation that "Each attribute rule contains one and only one value rule." (<a href="https://wiki.shibboleth.net/confluence/display/SHIB2/IdPAddAttributeFilter#IdPAddAttributeFilter-3DefineAttributeRules">https://wiki.shibboleth.net/confluence/display/SHIB2/IdPAddAttributeFilter#IdPAddAttributeFilter-3DefineAttributeRules</a>&nbsp;)</div></div><div><br></div><div>this is what I've come up with…</div><div><br></div><div><br></div><div>&nbsp; &nbsp;&lt;afp:AttributeRule attributeID="eduPersonEntitlement" xsi:type="basic:OR"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;basic:Rule xsi:type="AttributeValueRegex" attributeID="distinguishedName" regex="^OU=ComputerScience.*$"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;afp:PermitValueRule xsi:type="basic:OR"&gt; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;basic:Rule xsi:type="basic:AttributeValueString" value="urn:mace:heanet.ie:edugate:sp:onthehub:13209481" ignoreCase="true"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;basic:Rule xsi:type="basic:AttributeValueString" value="urn:mace:heanet.ie:edugate:sp:onthehub:14556661" ignoreCase="true"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/afp:PermitValueRule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/basic:Rule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;basic:Rule xsi:type="basic:AttributeValueRegex" attributeID="distinguishedName" regex="^OU=HumanitiesStudent.*$"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;afp:PermitValueRule xsi:type="basic:OR"&gt; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;basic:Rule xsi:type="basic:AttributeValueString" value="urn:mace-dir:heanet.ie:edugate:sp:onthehub:69303931" ignoreCase="true"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;basic:Rule xsi:type="basic:AttributeValueString" value="urn:mace-dir:heanet.ie:edugate:sp:onthehub:98632322" ignoreCase="true"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/afp:PermitValueRule&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/basic:Rule&gt;</div><div>&nbsp;&lt;/afp:AttributeRule&gt;</div><div><br></div><div>This raises the error "<span class="Apple-style-span" style="font-size: 12px; ">ERROR [edu.internet2.middleware.shibboleth.common.config.BaseService:188] - Configuration was not loaded for shibboleth.AttributeFilterEngine service, error creating components.&nbsp; The root cause of this error was: org.xml.sax.SAXParseException: cvc-elt.4.3: Type 'basic:OR' is not validly derived from the type definition, 'AttributeRuleType', of element 'afp:AttributeRule'."</span></div><div><span class="Apple-style-span" style="font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-size: 12px; ">I had a look at the schema and I don't think it allows for an OR on an AttributeRule.</span></div><div><span class="Apple-style-span" style="font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-size: 12px; ">Anybody got a suggestion that doesn't involve a script resolver, or a&nbsp;</span><a href="https://wiki.shibboleth.net/confluence/display/SHIB2/IdPFilterRequirementScript">script matching rule&nbsp;</a>?</div><div>Glenn</div><div><br></div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><a href="http://www.edugate.ie">Edugate</a>&nbsp;Operations</div><div><a href="http://www.heanet.ie">HEAnet Limited</a>, Ireland's Education and Research Network -&nbsp;</div><div>1st Floor, 5 George's Dock, IFSC, Dublin 1</div><div>Registered in Ireland, no 275301 &nbsp;tel: +353-1-6609040 &nbsp;fax: +353-1-6603666</div></div></div>
</div>
<br></body></html>