<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Wed, Aug 19, 2015 at 10:36 AM, Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 8/19/15, 9:36 AM, "users on behalf of Michael Dahlberg" <<a href="mailto:users-bounces@shibboleth.net">users-bounces@shibboleth.net</a> on behalf of <a href="mailto:olgamirth@gmail.com">olgamirth@gmail.com</a>> wrote:<br>
<br>
<br>
<br>
> nameFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:persistent" /><br>
<br>
</span>That's for opaque, pairwise identifiers only, so you should not be using it here.<br>
<span class=""><br>
>The cn attribute is one that is released by the data connector referenced in myLDAP and contains the username of the authenticated user<br>
<br>
</span>If you're populating the subject with the value of an arbitrary attribute, and no existing Format applies, you should use the URI of the SAML Attribute Name as the NameID Format.<br>
<span class=""><br>
>It looks as if the NameID value is the transientId, not the cn. I have no idea why the transientId is returned rather than the cn from the configurations listed above.<br>
<br>
</span>Releasing an attribute is necessary, but not sufficient, you still have to address which Format is actually selected. The wiki documents the NameID Format selection process, and absent any other input, it's basically random. If you want to use a Format with a particular SP, you either put it in the SP's metadata in a NameIDFormat element, or use the RelyingParty nameIDFormatPrecedence setting.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Great, I think I should be able to work this out. <br><br></div><div>One last question: Is it fairly common to release an arbitrary attribute to an SP in the SAML2 Subject? I'm working with a number of SPs and this is the first one that required the attribute released in the Subject.<br><br></div><div>Thanks again,<br></div><div>Mike <br></div></div><br></div></div>