@Mike, Thanks for the help. I implemented the changes you suggested and still get an error when the service starts. I have attached the cas.log. It almost seems like I’m missing files maybe?
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class [org.jasig.cas.authentication.support.UpnSearchEntryResolver]
for bean with name 'entryResolver' defined in ServletContext resource
[/WEB-INF/deployerConfigContext.xml]; nested exception is
java.lang.ClassNotFoundException:
org.jasig.cas.authentication.support.UpnSearchEntryResolver
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1281)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:435)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:320)
... 67 more
Caused by: java.lang.ClassNotFoundException:
org.jasig.cas.authentication.support.UpnSearchEntryResolver
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
at
org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:416)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)
... 73 more
Sincerely,
Christopher Irwin
Sr. Solutions Architect | Microsoft Practice
SADA Systems
C: 704.516.0261 | SADASystems.com<http://sadasystems.com/>
Cloud Computing | Managed Services | Consulting | App Development
From: Mike Seiler [mailto:[email protected]]
Sent: Friday, July 24, 2015 6:16 PM
To: [email protected]
Subject: Re: [cas-user] Cas 4.0.3 and AD Config
Chris,
I just set up CAS with AD as well, and while I started with the first bit of
code, I ended up getting it to work with the second bit of code called "LDAP
Requiring Authenticated Search."
I also noticed that I had to change the DN of the authenticating user to the
"[email protected]<mailto:[email protected]>" instead of the "cn=LDAP
Admin"... etc.
I'll forward you the email string to "cas-users" that helped me get it set up.
The LDAP portion of my cas.properties file is below:
#========================================
# General properties
#========================================
ldap.url=ldaps://ad_server.fuller.edu<http://ad_server.fuller.edu>
# LDAP connection timeout in milliseconds
ldap.connectTimeout=3000
# Whether to use StartTLS (probably needed if not SSL connection)
ldap.useStartTLS=false
#========================================
# LDAP connection pool configuration
#========================================
ldap.pool.minSize=3
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
#========================================
# Authentication
#========================================
# Base DN of users to be authenticated
ldap.baseDn=ou=fuller,DC=id,DC=fuller,DC=edu
# Manager DN for authenticated searches
[email protected]<mailto:[email protected]>
# Manager password for authenticated searches
ldap.authn.managerPassword=admin_password
# Search filter used for configurations that require searching for DNs
ldap.authn.searchFilter=(sAMAccountName={user})
# Domain Setting
ldap.domain=fuller.edu<http://fuller.edu/>
ldap.trustedCert=file:/etc/cas/id_app.pem
And I'm attaching the final deployer file as well. Hopefully that can help you
out.
Mike
On Fri, Jul 24, 2015 at 12:08 PM, Chris Irwin
<[email protected]<mailto:[email protected]>> wrote:
Guess I should have said, i'm trying to authenticate to Active Directory.
Chris
________________________________
From: Chris Irwin
Sent: Friday, July 24, 2015 3:06 PM
To: [email protected]<mailto:[email protected]>
Subject: Cas 4.0.3 and AD Config
Please forgive me up front as i'm a CAS newbie. I have a Windows Server 2012
R2 server running Tomcat 8. This seems to be working fine. I have pulled down
the CAS 4.0.3 war file from the maven repository and installed it. Again this
went fine, I can hit the logon page with no issues. Now i'm following the
directions on
http://jasig.github.io/cas/4.0.x/installation/LDAP-Authentication.html
CAS - LDAP Authentication
CAS - Single Sign-On for the Web
Read
more...<http://jasig.github.io/cas/4.0.x/installation/LDAP-Authentication.html>
I have added the following to my pom.xml:
<dependency>
<groupId>org.jasig.cas</groupId>
<artifactId>cas-server-support-ldap</artifactId>
<version>${cas.version}</version>
</dependency>
as well as the suggested code for my deployerConfigContext.xml and
cas.properties (attached). Now i'm getting the following error when I start
the services:
Caused by: java.lang.ClassNotFoundException:
org.jasig.cas.authentication.support.UpnSearchEntryResolver
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:416)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)
... 73 more
I have attached all files and logs for review. Any help would be greatly
appreciated!
--
You are currently subscribed to
[email protected]<mailto:[email protected]> as:
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
--
Michael Seiler
--------------------------------------------------
Systems Integration Engineer
Fuller Theological Seminary
Phone: (970) 306-6105
[email protected]<mailto:[email protected]>
Fuller Summer Hours: Please note that all Fuller offices will be closed on
Fridays from 7/3-8/28
Mike's Vacation Notice: From 7/3-8/28 I will also be taking Mondays off, and
will be out of the office for vacation 7/31 - 8/31
Please NOTE:
I respond to email at 8 AM, 1PM, and at 4:30PM. If you need more immediate
help, please contact TSS (626.584.5675) and they can route the issue to the
appropriate person. If this is a business process life or death emergency, you
may call me at the above number.
--
You are currently subscribed to
[email protected]<mailto:[email protected]> as:
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
cas.log
Description: cas.log
