<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div>&nbsp;I am trying to have IdP return email address as the NameId in the Assertion (in response AuthnRequest). But the returned nameId value (in decrypted Assertion) is some sort of code "_3ad95a453140ebc4894b5777f58096e2" instead of the authenticated user's email address (in LDAP) that i was expecting.</div><div><br></div><div style="background-color: transparent;">Here is attribute-resolver.xml at IdP:</div><div style="background-color: transparent;">&nbsp; &nbsp; &lt;resolver:AttributeDefinition xsi:type="ad:Simple" id="email" sourceAttributeID="mail"&gt;</div><div style="background-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:Dependency ref="myLDAP" /&gt;</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">
        </span>&lt;resolver:AttributeEncoder xsi:type="SAML2StringNameID" xmlns="urn:mace:shibboleth:2.0:attribute:encoder" nameFormat="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress" /&gt;</div><div style="background-color: transparent;">&nbsp; &nbsp; &lt;/resolver:AttributeDefinition&gt;</div><div style="background-color: transparent;">&nbsp; &nbsp;&nbsp;</div><div style="background-color: transparent;">Here is attribute-filter.xml at IdP:</div><div style="background-color: transparent;">&lt;afp:AttributeFilterPolicy id="citrixShareFile_nameID"&gt;</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;afp:PolicyRequirementRule xsi:type="basic:ANY" /&gt;</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;afp:AttributeRule attributeID="email"&gt;</div><div style="background-color: transparent;"><span class="Apple-tab-span"
 style="white-space:pre">                </span>&lt;afp:PermitValueRule xsi:type="basic:ANY" /&gt;</div><div style="background-color: transparent;"><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/afp:AttributeRule&gt;</div><div style="background-color: transparent;">&lt;/afp:AttributeFilterPolicy&gt;</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">SP configuration at IdP: &lt;SPSSODescriptor&gt; includes:</div><div style="background-color: transparent;">&lt;NameIDFormat&gt;urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress&lt;/NameIDFormat&gt;</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">And the AuthnRequest contains:</div><div style="background-color: transparent;">&lt;saml2p:NameIDPolicy Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"/&gt;</div><div style="background-color: transparent;"><br></div><div
 style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;">Please let me know how to have IdP return authenticated user's email address to the SP.</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;">Thanks,</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;">Vasu</div></div></body></html>