<div dir="ltr"><div> Hello,</div><div><br></div><div><br></div><div>am trying to force <span style="font-size:12.8px">Assertion/Subject/NameID to be the CN of the user, as requested by the SP.... </span></div><div><span style="font-size:12.8px">I tried adding a custom format in the SP metadata: </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emaintNameid"</md:NameIDFormat></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">and then in saml-nameid.xml :</span></div><div><span style="font-size:12.8px"><br></span></div><div><br></div><div>    <util:list id="shibboleth.SAML2NameIDGenerators"><br></div><div><br></div><div>        <ref bean="shibboleth.SAML2TransientGenerator" /></div><div><br></div><div>        <bean parent="shibboleth.SAML2AttributeSourcedGenerator"</div><div>            p:format="urn:oasis:names:tc:SAML:1.1:nameid-format:emaintNameid"</div><div>            p:attributeSourceIds="emaintNameid" /></div><div><br></div><div>    </util:list></div><div><br></div><div>    <!-- SAML 1 NameIdentifier Generation --></div><div>    <util:list id="shibboleth.SAML1NameIdentifierGenerators"></div><div><br></div><div>        <ref bean="shibboleth.SAML1TransientGenerator" /></div><div><br></div><div>       </div><div>            p:attributeSourceIds="#{ {'mail'} }" /></div><div>        --></div><div><br></div><div>    </util:list></div><div><br></div><div><br></div><div><br></div><div>For p:attributeSourceIds, I tired p:attributeSourceIds="#{ {'emaintNameid'} }"   as well.</div><div>Not sure which is the correct syntax.</div><div><br></div><div>The emaintNameid attribute is properly released to the SP, as I actually see it in the SAML response.</div><div><br></div><div>The NameID though is left empty:</div><div><br></div><div> </div><div><div>2017-03-26 18:26:22,388 - DEBUG [org.opensaml.saml.saml2.profile.impl.AddNameIDToSubjects:341] - Profile Action AddNameIDToSubjects: Unable to generate a NameID, leaving empty</div><div>2017-03-26 18:26:22,388 - DEBUG [org.opensaml.saml.common.profile.impl.ChainingNameIdentifierGenerator:106] - Trying to generate identifier with Format urn:oasis:names:tc:SAML:1.1:nameid-format:emaintNameid"</div></div><div><br></div><div><br></div><div>Feels like am close.. but still missing something :)</div><div><br></div><div>Thanks a lot,</div><div>Mohamed.</div></div>