<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,All.<div><br></div><div>Thanks to your advices, I solved this problem.</div><div><br></div><div>I added statements marked "added" as below to mfa-authn-config.xml.</div><div><br></div><div><div dir="ltr">resCtx = input.getSubcontext("net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext",true);<br>resCtx.setPrincipal(usernameLookupStrategy.apply(input));<br>resCtx.getRequestedIdPAttributeNames().add("mfaTotpAuthnUseFlag");<br></div><div dir="ltr">resCtx.getRequestedIdPAttributeNames().add("ImmutableID"); // added</div><div dir="ltr">resCtx.getRequestedIdPAttributeNames().add("o365UserPrincipalName"); // added</div></div><div dir="ltr"><br></div><div>But this way makes me add all attributes defined by attribute-rexolver.xml.</div><div><br></div><div>Is there any way to add an attribute to AttributeResolutionContext automatically</div><div>when new attributes are added to attributes-resolver.xml?</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2019年2月4日(月) 18:43 Rod Widdowson <<a href="mailto:rdw@steadingsoftware.com">rdw@steadingsoftware.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">So. Here is your problem:<br>
<br>
1) myLDAP produces three attributes mail, displayName, givenName<br>
<br>
> 2019-02-04 00:34:06,103 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractDataConnector:143] - <br>
> Data Connector 'myLDAP': Attribute 'mail': Values '[StringAttributeValue{value=<a href="mailto:XXX@example.com" target="_blank">XXX@example.com</a>}]'<br>
> 2019-02-04 00:34:06,104 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractDataConnector:143] - <br>
> Data Connector 'myLDAP': Attribute 'displayName': Values '[StringAttributeValue{value=XXX XXX}]'<br>
> 2019-02-04 00:34:06,105 - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractDataConnector:143] - <br>
> Data Connector 'myLDAP': Attribute 'givenName': Values '[StringAttributeValue{value=XXX}]'<br>
<br>
Your configuration needs "ImmutableId". But it isn't there<br>
<br>
> 2019-02-03 15:26:47,470 - INFO [net.shibboleth.idp.saml.nameid.impl.AttributeSourcedSAML2NameIDGenerator:227] - <br>
> Attribute sources [ImmutableID] did not produce a usable identifier<br>
<br>
So why isn't your LDAP resolver providing this value. Only you can tell. Nate and I both believe its to do with what you are feeding in to it but that is a guess.<br>
<br>
<br>
<br>
-- <br>
For Consortium Member technical support, see <a href="https://wiki.shibboleth.net/confluence/x/coFAAg" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/x/coFAAg</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div><br clear="all"><div><br></div></div></div></div>