<div dir="ltr">Hello All,<div><br></div><div>We are interoperating with an AD FS implementation and it is sending along a NameID that is not being mapped to an attribute with our standard attribute-map.xml. The following is shown in the shibd.log set to debug (removed timestamps for readability)</div>
<div><br></div><div><div>Shibboleth.AttributeExtractor.XML [2]: unable to extract attributes, unknown XML object type: samlp:Response</div><div>Shibboleth.AttributeExtractor.XML [2]: skipping unmapped NameID with format (urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified)</div>
<div>Shibboleth.AttributeExtractor.XML [2]: unable to extract attributes, unknown XML object type: {urn:oasis:names:tc:SAML:2.0:assertion}AuthnStatement</div></div><div><br></div><div>It appears, due to the "samlp" message, that the AD FS "IdP" is using SAML 1.1. The above results in no attributes visible to the application. I then decided, as an experiment, to add the "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" to attribute-map.xml as a simple mapping with no decoder specified -</div>
<div><br></div><div><div> <Attribute name="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" id="test-mapping"></div><div> </Attribute> </div></div><div><br></div><div>I reloaded shibd and then the test attribute, "test-mapping", was visible. The logs showed </div>
<div><br></div><div><div>Shibboleth.AttributeExtractor.XML [2]: unable to extract attributes, unknown XML object type: samlp:Response</div><div>Shibboleth.AttributeDecoder.String [2]: decoding SimpleAttribute (test-mapping) from SAML 2 NameID with Format (unspecified)</div>
<div>Shibboleth.AttributeExtractor.XML [2]: unable to extract attributes, unknown XML object type: {urn:oasis:names:tc:SAML:2.0:assertion}AuthnStatement</div></div><div><br></div><div>This solves my problem (getting the user name visible to the app). My question is - is this a recommended approach? Should I, or the AD FS administrators, do something differently?</div>
<div><br></div><div>Many thanks,</div><div><br></div><div>Fred.</div></div>