<div dir="ltr"><div>I get the following error unless I hack the format to urn:oasis:names:tc:SAML:2.0:nameid-format:transient in saml-java on my SP:</div><div><br></div><div>[org.opensaml.saml.saml2.profile.impl.AddNameIDToSubjects:337] - Profile Action AddNameIDToSubjects: Request specified use of an unsupportable identifier format: urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified</div><div><br></div><div>If I hack the format I get NameID values I can't use.  I need the email address on the SP.  I don't want to do anything that will compromise my SP's support for other IdPs.</div><div><br></div><div>I have the following in conf/attribute-resolver-ldap.xml:</div><div><br></div><div><div>    <resolver:AttributeDefinition id="mailAsNameId" xsi:type="ad:Simple" sourceAttributeID="mail"></div><div>        <resolver:Dependency ref="myLDAP" /></div><div>        <resolver:AttributeEncoder xsi:type="SAML2StringNameID" nameFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" /></div><div>    </resolver:AttributeDefinition></div></div><div><br></div><div>I have the following in metadata/saml-java.xml (my SP metadata):</div><div><br></div><div><NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified</NameIDFormat><br></div><div><br></div><div>I have the following in conf/attribute-filter.xml:</div><div><br></div><div><div>    <!-- Release uid to saml-java --></div><div>    <afp:AttributeFilterPolicy></div><div>        <afp:PolicyRequirementRule xsi:type="basic:AttributeRequesterString" value="<a href="http://localhost:8080/consume.jsp">http://localhost:8080/consume.jsp</a>" /></div><div>        <afp:AttributeRule attributeID="mailAsNameId"></div><div>            <afp:PermitValueRule xsi:type="basic:ANY" /></div><div>        </afp:AttributeRule></div><div>    </afp:AttributeFilterPolicy></div></div><div><br></div><div>I am missing something.  How do I make urn:oasis:names:tc:SAML:2.0:nameid-format:unspecified a supportable identifier format?</div></div>