Hello,

I use the document to install CAS with ldap authentication (Active 
Directory):

*https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html#active-directory-authentication
 
<https://apereo.github.io/cas/4.2.x/installation/LDAP-Authentication.html#active-directory-authentication>*



It not work i have this error message :


2016-09-13 11:18:57,232 WARN 
[org.springframework.web.context.support.XmlWebApplicationContext] - 
Exception encountered during context initialization - cancelling refresh 
attempt: org.springframework.beans.factory.BeanDefinitionStoreException: 
Invalid bean definition with name 'authenticator' defined in null: Could 
not resolve placeholder 'ldap.baseDn' in string value "${ldap.baseDn}"; 
nested exception is java.lang.IllegalArgumentException: Could not resolve 
placeholder 'ldap.baseDn' in string value "${ldap.baseDn}"
2016-09-13 11:18:57,259 ERROR 
[org.springframework.web.context.ContextLoader] - Context initialization 
failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid 
bean definition with name 'authenticator' defined in null: Could not 
resolve placeholder 'ldap.baseDn' in string value "${ldap.baseDn}"; nested 
exception is java.lang.IllegalArgumentException: Could not resolve 
placeholder 'ldap.baseDn' in string value "${ldap.baseDn}"
 at 
org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:211)


My files configuration are 

*etc/cas/cas.properties :*

##### LDAP
ldap.url=ldap://ponopo.local:389
ldap.useStartTLS=false
ldap.rootDn=dc=ponopo,dc=local
ldap.baseDn="OU=Groupes et Users ,dc=ponopo,dc=local"
ldap.authn.format=%s
ldap.connectTimeout=3000
ldap.managerDn="CN=readAD,CN=Users,DC=ponopo,DC=local"
ldap.managerPassword=************
ldap.pool.minSize=1
ldap.pool.maxSize=10
ldap.pool.validateOnCheckout=false
ldap.pool.validatePeriodically=true
ldap.pool.blockWaitTime=3000
ldap.pool.validatePeriod=300
ldap.pool.prunePeriod=300
ldap.pool.idleTime=600
ldap.authn.searchFilter=cn={user}
ldap.domain=ponopo.local
ldap.usePpolicy=false
ldap.allowMultipleDns=false


*On the file deployerConfigContext.xml:*

<ldaptive:ad-authenticator id="authenticator"
        ldapUrl="${ldap.url}"
        userFilter="${ldap.authn.searchFilter}"
        bindDn="${ldap.managerDn}"
        bindCredential="${ldap.managerPassword}"
        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}" />

Very thanks for your help

Best Regards

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f21ac7f2-f64b-4681-871c-5d6bcb793693%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to