Understanding mapped attribute idp v3.3.0 - returns default and mapped values
Klingenstein, Nate
nklingenstein at calstate.edu
Thu Dec 1 00:18:29 EST 2016
Gary,
It's in the ANY and multiple values. It iterates over each value. If someone has cn=UNIVERSITY_MEMBER,ou=Groups,o=csu.edu.au and cn=UNIVERSITY_BOARD,ou=groups,o=csu.edu.au, the first one will match and yield member@, while the second will not match and yields the default.
If you can think of a clearer way to word that, it's all yours.
I haven't had time to figure out how passThru works. Scott said he was confused and I see that like a head on a stake in front of the Rabbit of Caerbannog.
Hope this helps,
Nate.
> On Nov 30, 2016, at 9:02 PM, Lipscomb, Gary <glipscomb at csu.edu.au> wrote:
>
> I have the following definition which returns both affiliate at csu.edu.au AND member at csu.edu.au
> Idp v3.3.0
>
> <AttributeResolver
> xmlns="urn:mace:shibboleth:2.0:resolver"
> xmlns:sec="urn:mace:shibboleth:2.0:security"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd
> urn:mace:shibboleth:2.0:security http://shibboleth.net/schema/idp/shibboleth-security.xsd">
>
>
>
> <AttributeDefinition xsi:type="Mapped"
> id="eduPersonScopedAffiliation"
> sourceAttributeID="memberOf">
> <Dependency ref="ldap" />
> <DisplayName xml:lang="en">CSU Primary Affiliation</DisplayName>
> <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:eduPersonScopedAffiliation" />
> <AttributeEncoder xsi:type="SAML2String" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.9" friendlyName="eduPersonScopedAffiliation" />
>
> <DefaultValue>affiliate at csu.edu.au</DefaultValue>
>
> <ValueMap>
> <ReturnValue>member at csu.edu.au</ReturnValue>
> <SourceValue>cn=UNIVERSITY_MEMBER,ou=Groups,o=csu.edu.au</SourceValue>
> </ValueMap>
>
> </AttributeDefinition>
>
>
> From the wiki https://wiki.shibboleth.net/confluence/display/IDP30/MappedAttributeDefinition
>
> <DefaultValue> Describes the action to be taken if any input value does not match one of the <ValueMap> SourceValue elements that follow. If the passThru attribute is set to "true", then the input value is passed through untouched, otherwise the contents of the element are used as the default value.
>
> Have I missed something in the configuration. I was expecting to get only member at csu.edu.au
>
> Also when I tried <DefaultValue> passThru="true"</DefaultValue> in another definition I got that string in the result.
>
> Regards
>
> Gary
>
> | ALBURY-WODONGA | BATHURST | CANBERRA | DUBBO | GOULBURN | MELBOURNE | ONTARIO | ORANGE | PORT MACQUARIE | SYDNEY | WAGGA WAGGA |
>
> LEGAL NOTICE
> This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University (CSU) does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with CSU may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at CSU. The views expressed in this email are not necessarily those of CSU.
> Charles Sturt University in Australia The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Number: 00005F (National)). TEQSA Provider Number: PV12018
> Charles Sturt University in Ontario 860 Harrington Court, Burlington Ontario Canada L7N 3N4 Registration: peqab.ca.
> Consider the environment before printing this email.
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list