Hello,
I recently upgraded from Shibboleth IDP v3.3.1 to IdP V4.0.1. As part of that upgrade, I had to change the NameID definition (globally) and the way it is mapped to the relying parties as the attribute encoder “SAML2StringNameID” is no longer supported in v4.
For “unspecified” NameID to be mapped to employeeNumber, I am doing the following
My definition in “saml-nameid.xml”
<bean parent="shibboleth.SAML2AttributeSourcedGenerator"
p:omitQualifiers="true"
p:format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
p:attributeSourceIds="#{ {'employeeNumber'} }" />
My definition in “attribute-resolver.xml”
<AttributeDefinition xsi:type="Simple" id="employeeNumber">
<InputDataConnector ref="ActiveDirectory" attributeNames="employeeNumber"/>
<AttributeEncoder xsi:type="SAML2String" encodeType="false" name="employeeNumber"/>
</AttributeDefinition>
My RP specific config in “relying-party.xml”
<property name="profileConfigurations">
<list>
<bean parent="SAML2.SSO" p:securityConfiguration-ref=“def-SecurityConfig" p:signAssertions="true"
p:signResponses="true" p:nameIDFormatPrecedence="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
p:encryptAssertions="false" p:encryptNameIDs="false"/>
</list>
</property>
</bean>
My RP specific “attribute-filter.xml” configuration
<!-- Release to DEF -->
<AttributeFilterPolicy id="releasetoDEF">
<AttributeRule attributeID="firstname" permitAny="true"/>
<AttributeRule attributeID="lastname" permitAny="true"/>
<AttributeRule attributeID="employeeNumber" permitAny="true"/>
</AttributeFilterPolicy>
Issue: With above configuration, “employeeNumber” is sent in both SAML Subject as well as in the SAML Attribute Statement.
Question: Am I doing this correct, If yes, Is there a way to configure an attribute mapped for NameID purpose be NOT sent in SAML Attribute statement as well ? If I am missing something, please help !
Thanks,
Prasanna
--
For Consortium Member technical support, see
https://wiki.shibboleth.net/confluence/x/coFAAgTo unsubscribe from this list send an email to
[hidden email]