jasig-cas IRC Logs-2011-10-12

[07:46:24 CDT(-0500)] <foxnesn1> morning

[10:10:50 CDT(-0500)] <foxnesn1> morning

[10:11:40 CDT(-0500)] <atilling> morning

[10:12:49 CDT(-0500)] <foxnesn1> today is another day of getting this work with ldap hehe

[10:13:24 CDT(-0500)] <foxnesn1> i think im gonna stick with a basic fastbind config

[10:13:49 CDT(-0500)] <atilling> ok, if working against AD try with ldap first then ldaps

[10:18:25 CDT(-0500)] <foxnesn1> do i need to create a user for userDetailsService?

[10:21:55 CDT(-0500)] <foxnesn1> also, bean id=contextSource , does that have to be inside bean id="authenticationManager" ?

[10:22:16 CDT(-0500)] <atilling> userDetailService is only used for service manager

[10:23:20 CDT(-0500)] <atilling> no contextSource can be a seperate bean and you can ref it

[10:29:37 CDT(-0500)] <foxnesn1> so do i have to create a userDetailService account somewhere or just name it whatever?

[10:37:21 CDT(-0500)] <foxnesn1> hrm, tomcat will not start cas with the fastbind info in it

[10:38:30 CDT(-0500)] <foxnesn1> atilling: mind looking at my deployer and see if there is any syntax issues?

[10:39:41 CDT(-0500)] <foxnesn1> http://pastie.org/2683593

[10:43:34 CDT(-0500)] <atilling> do you get any errors in catalina.out?

[10:45:55 CDT(-0500)] <foxnesn1> one sec, i moved some stuff around

[10:45:58 CDT(-0500)] <foxnesn1> to clean it up a bit

[10:50:39 CDT(-0500)] <atilling> try this for your contextSource http://pastie.org/2683654

[10:52:11 CDT(-0500)] <foxnesn1> wow erross galore

[10:56:22 CDT(-0500)] <foxnesn1> still will not start

[10:58:13 CDT(-0500)] <atilling> can you send me the logs via pastie

[10:59:45 CDT(-0500)] <atilling> I'll try to help you figure the error

[10:59:58 CDT(-0500)] <foxnesn1> the log is MASSIVE

[11:00:12 CDT(-0500)] <foxnesn1> here are the main errors which i truncated

[11:00:15 CDT(-0500)] <foxnesn1> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in ServletContext

[11:00:38 CDT(-0500)] <foxnesn1> 2011-10-12 11:56:03,329 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed>

[11:01:08 CDT(-0500)] <foxnesn1> [/WEB-INF/spring-configuration/applicationContext.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property

[11:04:15 CDT(-0500)] <foxnesn1> http://pastie.org/2683729

[11:04:16 CDT(-0500)] <foxnesn1> there

[11:04:19 CDT(-0500)] <foxnesn1> epic fail

[11:08:07 CDT(-0500)] <foxnesn1> brb

[11:19:12 CDT(-0500)] <atilling> actually with java errors usually the last error is the real error

[11:20:11 CDT(-0500)] <atilling> in this case the CAS service fail because it could find AuthManager - somewhere in the errors you should have an error as to why authenticationManager wasn't created

[11:36:25 CDT(-0500)] <foxnesn1> did u check out the pastie?

[11:43:10 CDT(-0500)] <atilling> I must have missed the pastie link

[11:43:20 CDT(-0500)] <foxnesn1> http://pastie.org/2683729

[11:44:47 CDT(-0500)] <atilling> ok, this is your real error ClassNotFoundException: org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource

[11:45:49 CDT(-0500)] <atilling> I think you want org.springframework.ldap.core.support.LdapContextSource in you deployer

[11:46:42 CDT(-0500)] <atilling> as the class for contextSource

[11:59:16 CDT(-0500)] <foxnesn1> hrm, should that be updated in the wiki then?

[12:01:20 CDT(-0500)] <atilling> it's right in the wiki

[12:01:48 CDT(-0500)] <atilling> I think you grabbed it from my old DeployerConfig I had linked in pastie

[12:02:05 CDT(-0500)] <foxnesn1> the example configuration for fastbind and AD

[12:02:32 CDT(-0500)] <foxnesn1> the contexttSource class is org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource

[12:02:41 CDT(-0500)] <foxnesn1> anyway, cas starts now

[12:02:52 CDT(-0500)] <foxnesn1> still not authenticating but this is progress i guess

[12:03:41 CDT(-0500)] <atilling> can you link the wiki you got it from? I don't see it on the LDAP page

[12:06:48 CDT(-0500)] <atilling> Found it

[12:08:01 CDT(-0500)] <foxnesn1> yea i just cut/paste that and changed my settings

[12:08:31 CDT(-0500)] <foxnesn1> sAMAccountName=u% may be wrong i think even though we search by sAMAccountName

[12:08:37 CDT(-0500)] <foxnesn1> maybe the u% isn't needed

[12:09:15 CDT(-0500)] <atilling> try this way <property name="filter" value="(sAMAccountName=%u)" />

[12:31:12 CDT(-0500)] <foxnesn1> grr nope

[12:32:02 CDT(-0500)] <atilling> how are things looking in the logs?

[12:32:19 CDT(-0500)] <atilling> all the filters set to debug?

[13:56:31 CDT(-0500)] <foxnesn1> i edit the log4j.xml files to go from WARN to DEBUG and then mvn clean package. i copy the new cas.war into webapps and restart tomcat. i check log4j.xml in the actual tomcat deployed dir and nothing changed...

[14:47:07 CDT(-0500)] <foxnesn1> is there a list of all of the possible filter values for <bean class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >

[14:47:28 CDT(-0500)] <foxnesn1> right now i have it set to "(sAMAccountName=u%)"

[14:48:06 CDT(-0500)] <foxnesn1> nothing i try seems to work

[15:44:01 CDT(-0500)] <RvnPhnx> I have a vendor asking for "CAS context url"--what is he really asking for? I don't see anything named that in the CAS documentation that I've been able to find.

[15:46:39 CDT(-0500)] <wgthom> not sure. what are they trying to achieve?

[15:55:07 CDT(-0500)] <RvnPhnx> They are trying to configure a Campus EAI instance to authenticate

[15:56:19 CDT(-0500)] <wgthom> sounds like it might be a CEAI proprietary thing

[15:56:52 CDT(-0500)] <RvnPhnx> Hmm..., well that would explain why I can't find it