<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:10.0pt;
        margin-left:0in;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:10.0pt;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:10.0pt;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:115%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:898781777;
        mso-list-type:hybrid;
        mso-list-template-ids:-811068264 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">How to configure Idp3.0 to release particular attributes based on the SP metadata.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="mso-list:Ignore">1)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>First I tried to add the local SP metadata in the metadata-providers.xml<o:p></o:p></p>
<p class="MsoNoSpacing"><MetadataProvider id="LocalMetadata" xsi:type="metadata:FilesystemMetadataProvider" xmlns="urn:mace:shibboleth:2.0:metadata"<o:p></o:p></p>
<p class="MsoNoSpacing"> metadataFile="/opt/shibboleth-idp/metadata/sp-metadata.xml"><o:p></o:p></p>
<p class="MsoNoSpacing"></MetadataProvider><o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoNormal">I was getting this error even though metadata is declared.<o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">UndeclaredPrefix: Cannot resolve 'metadata:FilesystemMetadataProvider' as a QName: the prefix 'metadata' is not declared.<o:p></o:p></span></p>
<p class="MsoNormal">So I removed it, and have this<o:p></o:p></p>
<p class="MsoNoSpacing"><MetadataProvider id="LocalMetadata" xsi:type="FilesystemMetadataProvider" xmlns="urn:mace:shibboleth:2.0:metadata"<o:p></o:p></p>
<p class="MsoNoSpacing"> metadataFile="/opt/shibboleth-idp/metadata/sp-metadata.xml"><o:p></o:p></p>
<p class="MsoNoSpacing"></MetadataProvider><o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpFirst" style="text-indent:-.25in;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="mso-list:Ignore">2)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>And in relying-party.xml file, I have this<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><bean id="shibboleth.UnverifiedRelyingParty" parent="RelyingParty"><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <property name="profileConfigurations"><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <list><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <bean parent="SAML2.SSO" p:encryptAssertions="false" p:postAuthenticationFlows="attribute-release" /><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> </list><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> </property><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> </bean><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle" style="text-indent:-.25in;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="mso-list:Ignore">3)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>In attribute-filtter.xml, I have<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><afp:AttributeFilterPolicy id="LocalMetadata"><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <afp:PolicyRequirementRule xsi:type="basic:AttributeRequesterString" value="<a href="https://MACHINENAME.pitt.edu/shibboleth">https://MACHINENAME.pitt.edu/shibboleth</a>" /><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <afp:AttributeRule attributeID="eduPersonPrincipalName"><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <afp:PermitValueRule xsi:type="basic:ANY" /><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> </afp:AttributeRule><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <afp:AttributeRule attributeID="uid"><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <afp:PermitValueRule xsi:type="basic:ANY" /><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> </afp:AttributeRule><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <afp:AttributeRule attributeID="email"><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> <afp:PermitValueRule xsi:type="basic:ANY" /><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"> </afp:AttributeRule><o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpLast"> </afp:AttributeFilterPolicy><o:p></o:p></p>
<p class="MsoNormal">But it is not releasing any attributes. What else needs to be configured to release the above attributes?<o:p></o:p></p>
<p class="MsoNoSpacing">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Senthil<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>