<html 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=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}
p.p2, li.p2, div.p2
        {mso-style-name:p2;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}
span.s1
        {mso-style-name:s1;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=en-AT link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I want to enable Kerberos/SPNEGO and trying to adapt the attribute resolution as it is<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>documented in the wiki.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=p1><span class=s1><AttributeDefinition id="principalName"</span><o:p></o:p></p><p class=p1><span class=apple-converted-space>                     </span><span class=s1>xsi:type="PrincipalName"</span><o:p></o:p></p><p class=p1><span class=apple-converted-space>                     </span><span class=s1>dependencyOnly="true"></span><o:p></o:p></p><p class=p1><span class=s1></AttributeDefinition></span><o:p></o:p></p><p class=p2><span class=apple-converted-space>  </span><o:p></o:p></p><p class=p1><span class=s1><AttributeDefinition id="krb_principalname"</span><o:p></o:p></p><p class=p1><span class=apple-converted-space>                     </span><span class=s1>xsi:type="Mapped"</span><o:p></o:p></p><p class=p1><span class=apple-converted-space>                     </span><span class=s1>dependencyOnly="true"></span><o:p></o:p></p><p class=p1><span class=apple-converted-space>    </span><span class=s1><InputAttributeDefinition ref="principalName" /></span><o:p></o:p></p><p class=p1><span class=apple-converted-space>    </span><span class=s1><DefaultValue passThru="true"/></span><o:p></o:p></p><p class=p1><span class=apple-converted-space>    </span><span class=s1><ValueMap></span><o:p></o:p></p><p class=p1><span class=apple-converted-space>        </span><span class=s1><ReturnValue>$1</ReturnValue></span><o:p></o:p></p><p class=p1><span class=apple-converted-space>        </span><span class=s1><SourceValue>(.+)@AD.</span><span class=s1><span lang=EN-US>ABC</span>.NET</SourceValue></span><o:p></o:p></p><p class=p1><span class=apple-converted-space>    </span><span class=s1></ValueMap></span><o:p></o:p></p><p class=p1><span class=s1></AttributeDefinition></span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>And then use the searchfilter:<o:p></o:p></span></p><p class=p1><span class=s1>idp.attribute.resolver.LDAP.searchFilter = (|(eduPersonPrincipalName=$resolutionContext.principal)(uid=${krb_principalname.get(0)}))</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But then I get the error on restart:<o:p></o:p></span></p><p class=p1><span class=s1>net.shibboleth.utilities.java.support.service.ServiceException: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'myLDAPfhv' defined in null: Could not resolve placeholder 'krb_principalname.get(0)' in value "(|(eduPersonPrincipalName=$resolutionContext.principal)(uid=${krb_principalname.get(0)}))"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'krb_principalname.get(0)' in value "(|(eduPersonPrincipalName=$resolutionContext.principal)(uid=${krb_principalname.get(0)}))"</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Is there anything I've overlooked?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Christian<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>