Mapped Attribute Value Always Passing Default

Brandon McKean mckeanbs at jmu.edu
Fri Oct 28 11:45:02 EDT 2016


Hi Everyone,

I'm having some trouble with making a mapped attribute behave. 
Essentially I need to to have it pass either yes or no depending on the 
value(s) in eduPersonScopedAffiliation. So far I have this as the 
attribute resolver definition:

> <resolver:AttributeDefinition xsi:type="ad:Mapped" id="isattendeerole" 
> sourceAttributeID="eduPersonScopedAffiliation">
>         <resolver:Dependency ref="eduPersonScopedAffiliation" />
>         <resolver:AttributeEncoder xsi:type="enc:SAML2String" 
> name="isattendeerole" />
>         <ad:DefaultValue>no</ad:DefaultValue>
>         <ad:ValueMap>
>                 <ad:ReturnValue>yes</ad:ReturnValue>
> <ad:SourceValue>staff</ad:SourceValue>
> <ad:SourceValue>faculty</ad:SourceValue>
> <ad:SourceValue>affiliate</ad:SourceValue>
>         </ad:ValueMap>
>         </resolver:AttributeDefinition>
 From what I saw in the documentation, DefaultValue is only supposed to 
be consulted when none of the ValueMaps match. However, when I've tested 
this out, a match produces both yes and no.

Am I misunderstanding how this is used? Any guidance would be appreciated.

Thanks,

-- 
Brandon McKean
IT / Systems
Linux Administrator
(540)568-4235



More information about the users mailing list