[cas-user] CAS 2.4.2 LDAP AUTHENTICATE

37 views
Skip to first unread message

paul radinota

unread,
Sep 13, 2016, 6:21:41 AM9/13/16
to CAS Community

Hello,

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



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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
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.

Misagh Moayyed

unread,
Sep 13, 2016, 6:43:53 AM9/13/16
to paul radinota, CAS Community

Remove double quotes from your property keys.


-- 
Misagh
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/etPan.57d7d860.a3621a9.227a%40unicon.net.

paul radinota

unread,
Sep 13, 2016, 6:51:04 AM9/13/16
to jasig-cas-user, cas-...@apereo.org
Hi,

i remove double quotes on the file cas.properties and restart tomcat service .

I have the same error :

Sep 13 12:45:41 cas server: 2016-09-13 12:45:41,756 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}">
Sep 13 12:45:41 cas server: 2016-09-13 12:45:41,765 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed
Sep 13 12:45:41 cas server: 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}"
Sep 13 12:45:41 cas server: at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:211)


my new file /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



thanks for your help
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
Reply all
Reply to author
Forward
0 new messages