Greetings to everybody.

I am trying to configure CAS 5.0.1 integrated with Active Directory 
authentication. I got the error message below:

2017-01-13 15:58:07,191 WARN 
> [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext]
>  
> - <Exception encountered during context initialization - cancelling refresh 
> attempt: 
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 
> 53 in XML document from class path resource [deployerConfigContext.xml] is 
> invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 53; 
> columnNumber: 45; cvc-complex-type.2.4.c: The matching wildcard is strict, 
> but no declaration can be found for element 'ldaptive:ad-authenticator'.>


webapps/cas/META-INF/maven/org.apereo.cas/cas-overlay/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd ">
......
    <dependencies>
        <dependency>
            <groupId>org.apereo.cas</groupId>
            <artifactId>cas-server-webapp</artifactId>
            <version>${cas.version}</version>
            <type>war</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
             <groupId>org.apereo.cas</groupId>
             <artifactId>cas-server-support-ldap</artifactId>
             <version>${cas.version}</version>
        </dependency>
    </dependencies>
......
</project>


*deployerConfigContext.xml*
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:p="http://www.springframework.org/schema/p";
       xmlns:c="http://www.springframework.org/schema/c";
       xmlns:lang="http://www.springframework.org/schema/lang";
       xmlns:util="http://www.springframework.org/schema/util";
       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/lang
       http://www.ldaptive.org/schema/spring-ext
       http://www.ldaptive.org/schema/spring-ext.xsd
       http://www.springframework.org/schema/lang/spring-lang.xsd
       http://www.springframework.org/schema/util
       http://www.springframework.org/schema/util/spring-util.xsd";>

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

 
        <util:map id="authenticationHandlersResolvers">
           <entry key-ref="ldapAuthenticationHandler" value-ref=
"primaryPrincipalResolver" />
        </util:map>
        <ldaptive:ad-authenticator id="authenticator"
                ldapUrl="${ldap.url}"
                userFilter="${ldap.authn.searchFilter}"
                bindDn="${ldap.bindDn}"
                bindCredential="${ldap.bindCredential}"
                allowMultipleDns="${ldap.allowMultipleDns:false}"
                connectTimeout="${ldap.connectTimeout}"
                validateOnCheckOut="${ldap.pool.validateOnCheckout}"
                failFastInitialize="true"
                blockWaitTime="${ldap.pool.blockWaitTime}"
                idleTime="${ldap.pool.idleTime}"
                baseDn="${ldap.baseDn}"
                maxPoolSize="${ldap.pool.maxSize}"
                minPoolSize="${ldap.pool.minSize}"
                validatePeriodically="${ldap.pool.validatePeriodically}"
                validatePeriod="${ldap.pool.validatePeriod}"
                prunePeriod="${ldap.pool.prunePeriod}"
                useSSL="${ldap.use.ssl:false}"
                subtreeSearch="${ldap.subtree.search:true}"
                useStartTLS="${ldap.useStartTLS:false}" />
</beans>
 
*/etc/cas/config/cas.properties*

cas.server.name: https://cas.example.org:8443
cas.server.prefix: https://cas.example.org:8443/cas
cas.adminPagesSecurity.ip=127\.0\.0\.1
logging.config: file:/etc/cas/config/log4j2.xml
ldap.url=ldaps://ldap.xxxxx.com:1389
ldap.useSsl=true
ldap.useStartTLS=false
ldap.rootDn=dc=xxxxx,dc=com
ldap.baseDn=ou=Users,dc=xxxxx,dc=com
ldap.connectTimeout=3000
[email protected]
ldap.bindCredential=XXXXXXXXXXX
ldap.pool.minSize=3
ldap.pool.maxSize=10
ldap.pool.validateOnCheckout=true
ldap.pool.validatePeriodically=true
ldap.pool.blockWaitTime=5000
ldap.pool.validatePeriod=600
ldap.pool.prunePeriod=600
ldap.pool.idleTime=500
ldap.authn.searchFilter=sAMAccountName={user}
ldap.domain=xxxxx.com
ldap.usePpolicy=false
ldap.allowMultipleDns=falsecas.authn.attributeRepository.ldap.providerClass=
org.ldaptive.provider.unboundid.UnboundIDProvider

Could someone help? Any comments would be appreciated. 

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/81050794-6f11-4ebb-aa15-38c4188ad7f3%40apereo.org.

Reply via email to