<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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I installed IdP 3.3.1 on a test environment, but I got<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2017-04-08 01:44:47,532 - ERROR [org.springframework.web.context.ContextLoader:351] - Context initialization failed<o:p></o:p></p>
<p class="MsoNormal">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.RegisterMetricSets$child#0' defined in file [/opt/shibboleth-idp/system/conf/../../conf/admin/metrics.xml]: Cannot resolve reference
 to bean 'shibboleth.metrics.AttributeResolverGaugeSet' while setting bean property 'arguments' with key [7]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet'
 defined in file [/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver<o:p></o:p></p>
<p class="MsoNormal">               at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)<o:p></o:p></p>
<p class="MsoNormal">Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in file [/opt/shibboleth-idp/system/conf/general-admin-system.xml]: Invocation of init
 method failed; nested exception is net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver<o:p></o:p></p>
<p class="MsoNormal">               at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)<o:p></o:p></p>
<p class="MsoNormal">Caused by: net.shibboleth.utilities.java.support.component.ComponentInitializationException: Injected service was null or not an AttributeResolver<o:p></o:p></p>
<p class="MsoNormal">               at net.shibboleth.idp.attribute.resolver.impl.AttributeResolverServiceGaugeSet.doInitialize(AttributeResolverServiceGaugeSet.java:104)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I did googling, seems the problem is related to LDAP binding, here is my data connector in resolver.xml and ldap configuration in ldap.properties and I turned log level to debug in logback.xml, but that is all the errors I got in idp-process.log<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">    <DataConnector id="myLDAP" xsi:type="LDAPDirectory"<o:p></o:p></p>
<p class="MsoNormal">        ldapURL="%{idp.attribute.resolver.LDAP.ldapURL}"<o:p></o:p></p>
<p class="MsoNormal">        baseDN="%{idp.attribute.resolver.LDAP.baseDN}" <o:p>
</o:p></p>
<p class="MsoNormal">        principal="%{idp.attribute.resolver.LDAP.bindDN}"<o:p></o:p></p>
<p class="MsoNormal">        principalCredential="%{idp.attribute.resolver.LDAP.bindDNCredential}"<o:p></o:p></p>
<p class="MsoNormal">        useStartTLS="%{idp.attribute.resolver.LDAP.useStartTLS:true}"<o:p></o:p></p>
<p class="MsoNormal">        connectTimeout="%{idp.attribute.resolver.LDAP.connectTimeout}"<o:p></o:p></p>
<p class="MsoNormal">        responseTimeout="%{idp.attribute.resolver.LDAP.responseTimeout}"><o:p></o:p></p>
<p class="MsoNormal">        <FilterTemplate><o:p></o:p></p>
<p class="MsoNormal">            <![CDATA[<o:p></o:p></p>
<p class="MsoNormal">                %{idp.attribute.resolver.LDAP.searchFilter}<o:p></o:p></p>
<p class="MsoNormal">            ]]><o:p></o:p></p>
<p class="MsoNormal">        </FilterTemplate><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">        <StartTLSTrustCredential id="LDAPtoIdPCredential" xsi:type="sec:X509ResourceBacked"><o:p></o:p></p>
<p class="MsoNormal">            <sec:Certificate>%{idp.attribute.resolver.LDAP.trustCertificates}</sec:Certificate><o:p></o:p></p>
<p class="MsoNormal">        </StartTLSTrustCredential><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"></DataConnector><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">## Authenticator strategy, either anonSearchAuthenticator, bindSearchAuthenticator, directAuthenticator, adAuthenticator<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">#idp.authn.LDAP.authenticator                   = anonSearchAuthenticator<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.authenticator                   = bindSearchAuthenticator<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">## Connection properties ##<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.ldapURL                         = ldaps://server.edu:636<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.useStartTLS                     = true<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.useSSL                          = false<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># Time in milliseconds that connects will block<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.connectTimeout                  = PT3S<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># Time in milliseconds to wait for responses<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.responseTimeout                 = PT3S<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">## SSL configuration, either jvmTrust, certificateTrust, or keyStoreTrust<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.sslConfig                       = certificateTrust<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">## If using certificateTrust above, set to the trusted certificate's path<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.trustCertificates               = %{idp.home}/credentials/ldap-server.crt<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">## If using keyStoreTrust above, set to the truststore path<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">#idp.authn.LDAP.trustStore                       = %{idp.home}/credentials/ldap-server.truststore<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">## Return attributes during authentication<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.returnAttributes                = passwordExpirationTime,loginGraceRemaining<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">## DN resolution properties ##<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># Search DN resolution, used by anonSearchAuthenticator, bindSearchAuthenticator<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># for AD: CN=Users,DC=example,DC=org<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.baseDN                           = dc=school,dc=edu<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">#idp.authn.LDAP.subtreeSearch                   = false<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.userFilter                       = (uid={user})<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># bind search configuration<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># for AD: idp.authn.LDAP.bindDN=adminuser@domain.com<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.bindDN                           = cn=xxx,ou=people,dc=school,dc=edu<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.bindDNCredential                 = secret password<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># Format DN resolution, used by directAuthenticator, adAuthenticator<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># for AD use idp.authn.LDAP.dnFormat=%s@domain.com<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.authn.LDAP.dnFormat                         = uid=%s,ou=people,dc=school,dc=edu<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># LDAP attribute configuration, see attribute-resolver.xml<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"># Note, this likely won't apply to the use of legacy V2 resolver configurations<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.ldapURL             = %{idp.authn.LDAP.ldapURL}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.connectTimeout      = %{idp.authn.LDAP.connectTimeout:PT3S}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.responseTimeout     = %{idp.authn.LDAP.responseTimeout:PT3S}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.baseDN              = %{idp.authn.LDAP.baseDN:undefined}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.bindDN              = %{idp.authn.LDAP.bindDN:undefined}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.bindDNCredential    = %{idp.authn.LDAP.bindDNCredential:undefined}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.useStartTLS         = %{idp.authn.LDAP.useStartTLS:true}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.trustCertificates   = %{idp.authn.LDAP.trustCertificates:undefined}<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">idp.attribute.resolver.LDAP.searchFilter        = (uid=$resolutionContext.principal)<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:9.6pt">Yi<o:p></o:p></p>
</div>
</body>
</html>