CAS 4.2.x deployerConfigContext.xml to connect to LDAP
<p>Can anyone of you please share CAS 4.2.x deployerConfigContext.xml to connect to LDAP?</p>

<p>I am using the below configuration but its failing with LDAP authentication:</p>

<blockquote>
  <p>ERROR [org.ldaptive.pool.BlockingConnectionPool] - &lt;[org.ldaptive.pool.BlockingConnectionPool@1473822750::name=search-pool, poolConfig=[org.ldaptive.pool.PoolConfig@338070642::minPoolSize=1, maxPoolSize=10, validateOnCheckIn=false, validateOnCheckOut=false, validatePeriodically=true, validatePeriod=300], activator=null, passivator=null, validator=[org.ldaptive.pool.SearchValidator@1077644989::searchRequest=[org.ldaptive.SearchRequest@-1624038438::baseDn=, searchFilter=[org.ldaptive.SearchFilter@1642584434::filter=(objectClass=*), parameters={}], returnAttributes=[1.1], searchScope=OBJECT, timeLimit=0, sizeLimit=1, derefAliases=null, typesOnly=false, binaryAttributes=null, sortBehavior=UNORDERED, searchEntryHandlers=null, searchReferenceHandlers=null, controls=null, referralHandler=null, intermediateResponseHandlers=null]] pruneStrategy=[org.ldaptive.pool.IdlePruneStrategy@742722732::prunePeriod=300, idleTime=600], connectOnCreate=true, connectionFactory=[org.ldaptive.DefaultConnectionFactory@47665555::provider=org.ldaptive.provider.jndi.JndiProvider@1bbee59c, config=[org.ldaptive.ConnectionConfig@620183::ldapUrl=xxxx, connectTimeout=3000, responseTimeout=-1, sslConfig=null, useSSL=false, useStartTLS=false, connectionInitializer=[org.ldaptive.BindConnectionInitializer@1374011571::bindDn=cn=Directory Manager,dc=uss,dc=net, bindSaslConfig=null, bindControls=null]]], initialized=false, availableCount=0, activeCount=0] unable to connect to the ldap></p>
</blockquote>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:c="http://www.springframework.org/schema/c"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:sec="http://www.springframework.org/schema/security"
       xmlns:ldaptive="http://www.ldaptive.org/schema/spring-ext"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
       http://www.ldaptive.org/schema/spring-ext http://www.ldaptive.org/schema/spring-ext.xsd"&gt;

    &lt;bean id="ldapAuthenticationHandler"
        class="org.jasig.cas.authentication.LdapAuthenticationHandler"
              p:principalIdAttribute="sAMAccountName"
              c:authenticator-ref="authenticator"&gt;
            &lt;property name="principalAttributeMap"&gt;
                &lt;map&gt;
                    &lt;entry key="displayName" value="simpleName" /&gt;
                    &lt;entry key="mail" value="email" /&gt;
                    &lt;entry key="memberOf" value="membership" /&gt;
                &lt;/map&gt;
            &lt;/property&gt;
    &lt;/bean&gt;

    &lt;ldaptive:ad-authenticator id="authenticator"
        ldapUrl="xxxx"
        userFilter="uid={user}"
        bindDn="cn=Directory Manager,dc=uss,dc=net"
        bindCredential="xxxx"
        allowMultipleDns="false"
        connectTimeout="3000"
        validateOnCheckOut="false"
        failFastInitialize="true"
        blockWaitTime="3000"
        idleTime="600"
        baseDn="ou=Users,ou=Unsorted,ou=xxxx,dc=uss,dc=net"
        maxPoolSize="10"
        minPoolSize="1"
        validatePeriodically="true"
        validatePeriod="300"
        prunePeriod="300"
        useSSL="false"
        subtreeSearch="true"
        useStartTLS="false" /&gt;


    &lt;util:map id="authenticationHandlersResolvers"&gt;
        &lt;entry key-ref="proxyAuthenticationHandler" value-ref="proxyPrincipalResolver" /&gt;
        &lt;entry key-ref="ldapAuthenticationHandler" value-ref="primaryPrincipalResolver" /&gt;
        &lt;!-- &lt;entry key-ref="primaryAuthenticationHandler" value-ref="primaryPrincipalResolver" /&gt; --&gt;
    &lt;/util:map&gt;

    &lt;util:list id="authenticationMetadataPopulators"&gt;
        &lt;ref bean="successfulHandlerMetaDataPopulator" /&gt;
        &lt;ref bean="rememberMeAuthenticationMetaDataPopulator" /&gt;
    &lt;/util:list&gt;

    &lt;bean id="attributeRepository" class="org.jasig.services.persondir.support.NamedStubPersonAttributeDao"
          p:backingMap-ref="attrRepoBackingMap" /&gt;

    &lt;alias name="acceptUsersAuthenticationHandler" alias="primaryAuthenticationHandler" /&gt;
    &lt;alias name="personDirectoryPrincipalResolver" alias="primaryPrincipalResolver" /&gt;

    &lt;util:map id="attrRepoBackingMap"&gt;
        &lt;entry key="uid" value="uid" /&gt;
        &lt;entry key="eduPersonAffiliation" value="eduPersonAffiliation" /&gt;
        &lt;entry key="groupMembership" value="groupMembership" /&gt;
        &lt;entry&gt;
            &lt;key&gt;&lt;value&gt;memberOf&lt;/value&gt;&lt;/key&gt;
            &lt;list&gt;
                &lt;value&gt;faculty&lt;/value&gt;
                &lt;value&gt;staff&lt;/value&gt;
                &lt;value&gt;org&lt;/value&gt;
            &lt;/list&gt;
        &lt;/entry&gt;
    &lt;/util:map&gt;

    &lt;alias name="serviceThemeResolver" alias="themeResolver" /&gt;

    &lt;alias name="jsonServiceRegistryDao" alias="serviceRegistryDao" /&gt;

    &lt;alias name="defaultTicketRegistry" alias="ticketRegistry" /&gt;

    &lt;alias name="ticketGrantingTicketExpirationPolicy" alias="grantingTicketExpirationPolicy" /&gt;
    &lt;alias name="multiTimeUseOrTimeoutExpirationPolicy" alias="serviceTicketExpirationPolicy" /&gt;

    &lt;alias name="anyAuthenticationPolicy" alias="authenticationPolicy" /&gt;
    &lt;alias name="acceptAnyAuthenticationPolicyFactory" alias="authenticationPolicyFactory" /&gt;

    &lt;bean id="auditTrailManager"
          class="org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager"
          p:entrySeparator="${cas.audit.singleline.separator:|}"
          p:useSingleLine="${cas.audit.singleline:false}"/&gt;

    &lt;alias name="neverThrottle" alias="authenticationThrottle" /&gt;

    &lt;util:list id="monitorsList"&gt;
        &lt;ref bean="memoryMonitor" /&gt;
        &lt;ref bean="sessionMonitor" /&gt;
    &lt;/util:list&gt;

    &lt;alias name="defaultPrincipalFactory" alias="principalFactory" /&gt;
    &lt;alias name="defaultAuthenticationTransactionManager" alias="authenticationTransactionManager" /&gt;
    &lt;alias name="defaultPrincipalElectionStrategy" alias="principalElectionStrategy" /&gt;
    &lt;alias name="tgcCipherExecutor" alias="defaultCookieCipherExecutor" /&gt;
&lt;/beans&gt;
</code></pre>