<div dir="ltr"><div>We are currently releasing eduPersonTargetID to Hathitrust in our v2 IdP. </div><div><br></div>If I want the legacy ComputedID definition to work, do I have to uncomment the '#idp.nameid.saml2.legacyGenerator = shibboleth.LegacySAML2NameIDGenerator' line in the saml-nameid.properties file? <div><br></div><div>Wouldn't doing that mean it will also ignore new-style configuration things I've defined elsewhere (in relying-party or saml-nameid.xml)?  Because I can't have that.</div><div><br></div><div>If so, then how do we redo this config bit from v2?</div><div><br></div><div><div>  <font face="monospace, monospace"> <resolver:AttributeDefinition xsi:type="ad:SAML2NameID" id="eduPersonTargetedID"</font></div><div><font face="monospace, monospace">       nameIdFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" sourceAttributeID="computedID"></font></div><div><font face="monospace, monospace">        <resolver:Dependency ref="computedID" /></font></div><div><font face="monospace, monospace">        <resolver:AttributeEncoder xsi:type="enc:SAML1XMLObject" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" /></font></div><div><font face="monospace, monospace">        <resolver:AttributeEncoder xsi:type="enc:SAML2XMLObject" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10" friendlyName="eduPersonTargetedID" /></font></div><div><font face="monospace, monospace">    </resolver:AttributeDefinition></font></div></div><div><br></div><div>Would it be something like:</div><div><br></div><div>In attribute-resolver:</div><div><br></div><div><font face="monospace, monospace"><span style="color:rgb(0,0,0);font-size:13.44px"><resolver:AttributeDefinition id="persistentNameIdSourceUid" xsi:type="Simple" xmlns="urn:mace:shibboleth:2.0:resolver:ad" sourceAttributeID="myChosenAttribute"> </span><br style="color:rgb(0,0,0);font-size:13.44px"><span style="color:rgb(0,0,0);font-size:13.44px">    <resolver:Dependency ref="directory" /> </span><br style="color:rgb(0,0,0);font-size:13.44px"><span style="color:rgb(0,0,0);font-size:13.44px">  </resolver:AttributeDefinition> </span></font><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><span style="color:rgb(0,0,0);font-size:13.44px"><font face="arial, helvetica, sans-serif">In saml-nameid.properties: </font></span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"><span style="color:rgb(0,0,0);font-size:13.44px"><font face="monospace, monospace">idp.persistentId.sourceAttribute = persistentNameIdSourceUid</font></span><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px"> </span><br></div><div>[...other computed ID lines...]</div><div><br></div><div>In saml-nameid.xml:</div><div><br></div><div>Use the <span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:13.44px">shibboleth.ComputedPersistentIdGenerator</span> <span style="color:rgb(51,51,51);line-height:20px"><font face="arial, helvetica, sans-serif">bean - though I am having trouble finding an actual example of the syntax for this guy. (The only one I've messed with is the SAML2AttributeSourcedGenerator.) This would be my first stab at it, using the urn:oid for the eduPersonTargetedID:</font></span></div><div><br></div><div><span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:13.44px"><bean parent="shibboleth.ComputedPersistentIdGenerator"</span><br></div><div><span style="font-family:monospace,monospace">  p:format:="urn:oid:1.3.6.1.4.1.5923.1.1.1.10</span><font color="#333333" face="arial, helvetica, sans-serif"><span style="line-height:20px">"</span></font><br></div><div><br></div><div>Even so, this doesn't tell me what I would put in the attribute resolver for this attribute.</div><div><br></div><div><font color="#333333" face="arial, helvetica, sans-serif"><div style="">I really would rather not play Guess The Syntax. ;-)  So if anyone has an actual example of how they've done this... or if anyone could tell me if it's even possible? If it's not possible, then I'm afraid my users' saved Hathitrust searches (or whatever) are not going to be there because I'm going to have to go to using eppn.</div><div style=""><br></div><div style="">Thanks. Sorry this is so long.</div></font></div><div>Karla B</div><div><br></div><div><br><div><br></div><div><br>-- <br><div class="gmail_signature"><div style="margin-left:40px">Karla Borecky<br>Systems Administrator<br>ITS<br>Smith College<br>Northampton, MA 01063<br></div></div>
</div></div></div>