<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried working through documentation before sending this. I had it working before but somehow lost the config and state of the VM :/<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Trying to support NameID of 1.1:emailAddress, and I’ve put the enabler in saml-nameid.xml (referencing the correct source attribute, as defined in attribute-resolver).<o:p></o:p></p>
<p class="MsoNormal">And in relying-party, the override using the RelyingPartyByName catch.<o:p></o:p></p>
<p class="MsoNormal">And in the metadata.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The first half of the log snippet below suggests I’ve married it up enough:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,147 - DEBUG [org.opensaml.saml.saml2.profile.impl.AddNameIDToSubjects:286] - Profile Action AddNameIDToSubjects: Attempting to add NameID to outgoing Assertion Subjects<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,147 - DEBUG [org.opensaml.saml.common.profile.logic.AbstractNameIDPolicyPredicate:218] - Policy checking disabled for NameIDPolicy with Format urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,148 - DEBUG [org.opensaml.saml.common.profile.logic.MetadataNameIdentifierFormatStrategy:82] - Metadata specifies the following formats: [urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress]<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,151 - DEBUG [net.shibboleth.idp.saml.profile.logic.DefaultNameIdentifierFormatStrategy:100] - Configuration specifies the following formats: [urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress]<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,152 - DEBUG [net.shibboleth.idp.saml.profile.logic.DefaultNameIdentifierFormatStrategy:121] - Filtered non-metadata-supported formats from configured formats, leaving: [urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress]<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,152 - DEBUG [org.opensaml.saml.saml2.profile.impl.AddNameIDToSubjects:323] - Profile Action AddNameIDToSubjects: Candidate NameID formats: [urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress]<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,153 - DEBUG [org.opensaml.saml.saml2.profile.impl.AddNameIDToSubjects:396] - Profile Action AddNameIDToSubjects: Trying to generate NameID with Format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,154 - DEBUG [org.opensaml.saml.common.profile.impl.ChainingNameIdentifierGenerator:106] - Trying to generate identifier with Format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But then it gives up at this point:<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,155 - WARN [net.shibboleth.idp.saml.nameid.impl.AttributeSourcedSAML2NameIDGenerator:143] - Unable to locate AttributeContext<o:p></o:p></p>
<p class="MsoNormal">2016-09-29 11:29:49,156 - DEBUG [org.opensaml.saml.saml2.profile.impl.AddNameIDToSubjects:341] - Profile Action AddNameIDToSubjects: Unable to generate a NameID, leaving empty<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I assume I’ve missed something – all suggestions greatfully received.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">_________________________________________________<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">Dave Perry<br>
eLearning Technologist, Hull College Group<br>
<br>
Room L34 - Queens Gardens Library<br>
Wilberforce Drive, Queen's Gardens, Hull, HU1 3DG<br>
Extension 2230 / Direct Dial 01482 381930<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-GB">* Need a fast reply? Try
<a href="mailto:elearning@hull-college.ac.uk">elearning@hull-college.ac.uk</a> *<o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>

    <div>
      <font color="#999999" size="2">
                <span style="font-family: Arial;"><a href="http://www.hull-college.ac.uk/publications">Click here to view the College's range of publications celebrating staff and student successes</a></span> </font></div><div><font color="#999999" size="2"><br />
        <font face="Arial">This message is sent in confidence for the addressee </font>
        <span style="font-family: Arial;">only.  It may contain confidential or sensitive </span>
        <span style="font-family: Arial;">information.  The contents are not to be disclosed </span>
        <span style="font-family: Arial;">to anyone other than the addressee.  Unauthorised </span>
        <span style="font-family: Arial;">recipients are requested to preserve this </span>
        <span style="font-family: Arial;">confidentiality and to advise us of any errors in </span>
        <span style="font-family: Arial;">transmission.  Any views expressed in this message </span>
        <span style="font-family: Arial;">are solely the views of the individual and do not </span>
        <span style="font-family: Arial;">represent the views of the College.  Nothing in this </span>
        <span style="font-family: Arial;">message should be construed as creating a contract.</span>
      </font>
    </div>
    <div>
      <font color="#999999" face="Arial" size="2">
        <br />
      </font>
    </div>
    <div>
      <font color="#999999" face="Arial" size="2">Hull College Group owns the email infrastructure, including the contents.</font>
    </div>
    <div>
      <font color="#999999" face="Arial" size="2">
        <br />
      </font>
    </div>
    <div>
      <font color="#00cc33" face="Arial" size="2">Hull College Group is committed to sustainability, please reflect before printing
      this email.</font>
    </div>
    <div>
      <hr />
    </div>





</body>
</html>