<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>    I have an SP that requires eduPersonScopedAffiliation and eduPersonTargetedID.  To test this I setup my attribute-filter.xml files to deliver these two attributes to <a href="http://sp.testshib.org">sp.testshib.org</a>, but neither of them are being delivered.  <br><br></div>    I've verified that both attributes are populated in AD and can see that they're being delivered by LDAP:<br><br>2018-06-14 15:00:50,193 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractDataConnector:143] - Data Connector 'myLDAP': Attribute 'eduPersonScopedAffiliation': Values '[StringAttributeValue{value=Staff}]'<br><br>2018-06-14 15:00:50,194 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractDataConnector:143] - Data Connector 'myLDAP': Attribute 'eduPersonTargetedID': Values '[StringAttributeValue{value=lamother}]'<br><br></div>Yet I also see this:<br><br>2018-06-14 10:21:50,312 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:372] - Attribute Resolver 'ShibbolethAttributeResolver': Resolving dependencies for 'eduPersonScopedAffiliation'<br>2018-06-14 10:21:50,312 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:388] - Attribute Resolver 'ShibbolethAttributeResolver': Finished resolving dependencies for 'eduPersonScopedAffiliation'<br>2018-06-14 10:21:50,312 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition:245] - Attribute Definition 'eduPersonScopedAffiliation': produced an attribute with no values<br>2018-06-14 10:21:50,313 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:272] - Attribute Resolver 'ShibbolethAttributeResolver': Attribute definition 'eduPersonScopedAffiliation' produced an attribute with 0 values<br>2018-06-14 10:21:50,353 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:428] - Attribute Resolver 'ShibbolethAttributeResolver': Removing result of attribute definition 'eduPersonScopedAffiliation', contains no values<br><br><br></div>And<br><br>2018-06-14 15:00:50,261 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:372] - Attribute Resolver 'ShibbolethAttributeResolver': Resolving dependencies for 'eduPersonTargetedID'<br>2018-06-14 15:00:50,264 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:388] - Attribute Resolver 'ShibbolethAttributeResolver': Finished resolving dependencies for 'eduPersonTargetedID'<br>2018-06-14 15:00:50,276 - DEBUG [net.shibboleth.idp.saml.attribute.resolver.impl.SAML2NameIDAttributeDefinition:153] - Attribute Definition 'eduPersonTargetedID': building a SAML2 NameID with value of 'XgQzYSIOcCKtS8gcaeSXYCyfsfE='<br>2018-06-14 15:00:50,276 - DEBUG [net.shibboleth.idp.saml.attribute.resolver.impl.SAML2NameIDAttributeDefinition:164] - Attribute Definition 'eduPersonTargetedID': Format set to 'urn:oasis:names:tc:SAML:2.0:nameid-format:persistent'<br>2018-06-14 15:00:50,277 - DEBUG [net.shibboleth.idp.saml.attribute.resolver.impl.SAML2NameIDAttributeDefinition:172] - Attribute Definition 'eduPersonTargetedID': NameQualifier set to '<a href="https://testshib.umassmed.edu/idp/shibboleth">https://testshib.umassmed.edu/idp/shibboleth</a>'<br>2018-06-14 15:00:50,277 - DEBUG [net.shibboleth.idp.saml.attribute.resolver.impl.SAML2NameIDAttributeDefinition:182] - Attribute Definition 'eduPersonTargetedID': SPNameQualifier set to '<a href="https://sp.testshib.org/shibboleth-sp">https://sp.testshib.org/shibboleth-sp</a>'<br>2018-06-14 15:00:50,278 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition:247] - Attribute Definition 'eduPersonTargetedID': produced an attribute with the following values [XMLObjectAttributeValue{value=org.opensaml.saml.saml2.core.impl.NameIDImpl@d7124d8}]<br>2018-06-14 15:00:50,278 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:272] - Attribute Resolver 'ShibbolethAttributeResolver': Attribute definition 'eduPersonTargetedID' produced an attribute with 1 values<br>2018-06-14 15:00:50,366 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:434] - Attribute Resolver 'ShibbolethAttributeResolver': De-duping attribute definition eduPersonTargetedID result<br>2018-06-14 15:00:50,366 - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:446] - Attribute Resolver 'ShibbolethAttributeResolver': Attribute 'eduPersonTargetedID' has 1 values after post-processing<br><br><br></div>My decrypted Assertion at <a href="http://sp.testshib.org">sp.testshib.org</a> looks like:<br><br><pre>2018-06-14 15:41:49 DEBUG Shibboleth.SSO.SAML2 [76]: decrypted Assertion: <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" ID="_f8ee0b26b509a4840675be141cefd1f0" IssueInstant="2018-06-14T19:41:48.238Z" Version="2.0"><saml2:Issuer><a href="https://testshib.umassmed.edu/idp/shibboleth">https://testshib.umassmed.edu/idp/shibboleth</a></saml2:Issuer><saml2:Subject><saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" NameQualifier="<a href="https://testshib.umassmed.edu/idp/shibboleth">https://testshib.umassmed.edu/idp/shibboleth</a>" SPNameQualifier="<a href="https://sp.testshib.org/shibboleth-sp">https://sp.testshib.org/shibboleth-sp</a>" xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">AAlzZWNyZXQ4ODZCiDJKa7lVg5ZzS4KC9fJRKm/5M3zTvK1kZ6/O2iqrEfMDjzNgTuD0OlQEQgXQdq/CSEVuJmHIAy7+eFJ4bgYz80Znlp0oMPad2nyuLIxI3xqZOIP31dMgqHCaWmYzNvCpG4LL0W5InfUv</saml2:NameID><saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><saml2:SubjectConfirmationData Address="146.189.148.19" InResponseTo="_d3f4f0823fe28c735d62a9ed6d717552" NotOnOrAfter="2018-06-14T19:46:48.364Z" Recipient="<a href="https://sp.testshib.org/Shibboleth.sso/SAML2/POST">https://sp.testshib.org/Shibboleth.sso/SAML2/POST</a>"/></saml2:SubjectConfirmation></saml2:Subject><saml2:Conditions NotBefore="2018-06-14T19:41:48.238Z" NotOnOrAfter="2018-06-14T19:46:48.238Z"><saml2:AudienceRestriction><saml2:Audience><a href="https://sp.testshib.org/shibboleth-sp">https://sp.testshib.org/shibboleth-sp</a></saml2:Audience></saml2:AudienceRestriction></saml2:Conditions><saml2:AuthnStatement AuthnInstant="2018-06-14T19:41:39.175Z" SessionIndex="_881534154dad964ab5923b2ec0e9e355"><saml2:SubjectLocality Address="146.189.148.19"/><saml2:AuthnContext><saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml2:AuthnContextClassRef></saml2:AuthnContext></saml2:AuthnStatement><saml2:AttributeStatement><saml2:Attribute FriendlyName="uid" Name="urn:oid:0.9.2342.19200300.100.1.1" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue>LamotheR</saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="eduPersonPrimaryAffiliation" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.5" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue>Staff</saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="mail" Name="urn:oid:0.9.2342.19200300.100.1.3" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue><a href="mailto:Robert.Lamothe@umassmed.edu">Robert.Lamothe@umassmed.edu</a></saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="eduPersonTargetedID" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue><saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" NameQualifier="<a href="https://testshib.umassmed.edu/idp/shibboleth">https://testshib.umassmed.edu/idp/shibboleth</a>" SPNameQualifier="<a href="https://sp.testshib.org/shibboleth-sp">https://sp.testshib.org/shibboleth-sp</a>">XgQzYSIOcCKtS8gcaeSXYCyfsfE=</saml2:NameID></saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="displayName" Name="urn:oid:2.16.840.1.113730.3.1.241" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue>Lamothe, Robert L</saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="sn" Name="urn:oid:2.5.4.4" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue>Lamothe</saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="givenName" Name="urn:oid:2.5.4.42" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue>Robert</saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="eduPersonPrincipalName" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue><a href="mailto:lamother@umassmed.edu">lamother@umassmed.edu</a></saml2:AttributeValue></saml2:Attribute><saml2:Attribute FriendlyName="title" Name="urn:oid:2.5.4.12" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><saml2:AttributeValue>Sr Eng, Sys Admin</saml2:AttributeValue></saml2:Attribute></saml2:AttributeStatement><br></saml2:AttributeStatement></saml2:Assertion><br><br></pre><pre>In the Assertion I see eduPersonTargetedID which looks like it's being set to NameID instead of the AD value,<br></pre><pre>yet I don't see eduPersonScopedAffiliation.<br><br></pre><pre>Am I miss understanding something?  Is my config messed up?<br><br></pre><pre>Thanks<br></pre><pre>-Bob<br></pre></div>