Connect to LDAP problem
Scott Battaglia
scott.battaglia at gmail.com
Fri Apr 13 10:47:37 EDT 2007
You can remove the SSL thing if you're not using SSL.
-Scott
On 4/12/07, PLK Albert <plkit.helpdesk at poleungkuk.org.hk> wrote:
>
> If I don't want to use SSL, can I fix this ?
> The log seems to show that cas has not touch LDAP. No any about
> connection
> with ldap and cas log even I add the following line in log4j.properties
>
> log4j.logger.org.jasig.cas=INFO, CAS_APPENDER
> log4j.logger.org.jasig.cas.authentication=DEBUG
> log4j.logger.org.jasig.cas.web.flow.TicketGrantingTicketCheckAction=DEBUG
> log4j.logger.org.jasig.cas.services=DEBUG
> log4j.logger.org.jasig.cas.services.DefaultServiceRegistry=DEBUG
> log4j.logger.org.jasig.cas.ticket=DEBUG
>
> log4j.logger.org.jasig.cas.web.flow.X509CertificateCredentialsNonInteractive
> Action=DEBUG
> log4j.logger.org.jasig.cas.adaptors.x509=DEBUG
>
> log4j.logger.org.jasig.cas.adaptors.ldap.authentication.principal.Credential
> sToLDAPAttributePrincipalResolver=DEBUG
> log4j.logger.org.jasig.cas.adaptors.ldap=DEBUG
> log4j.logger.org.jasig.cas.adaptors.radius=DEBUG
> log4j.logger.org.esupportail.cas.server.GenericHandler=INFO, CAS_APPENDER
>
>
> Albert
>
>
>
> "Scott Battaglia" <scott.battaglia at gmail.com>
> ???????:1bbd36a10704120727t5a77ca4ax55f624f840bc84a1 at mail.gmail.com...
> > I think you told ldap to use ssl on a non-ssl port.
> >
> > -Scott
> >
> > On 4/12/07, PLK Albert
> <plkit.helpdesk at poleungkuk.org.hk> wrote:
> > > Dear,
> > >
> > > What is the problem of my configuration for CAS calling LDAP as
> > > authenication.
> > >
> > > I want to use LDAP for authenication. After I browse the web
> > > http://local/cas/login, typing the username and password who has been
> added
> > > in LDAP. The broswer is showing :
> > > CAS is Unavailable
> > > A general exception occurred while trying to access CAS. Please notify
> your
> > > system administrator.
> > >
> > > I check the log :
> > >
> > >
> > > 2007-04-12 16:39:39,836 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Rendering view with
> name
> > > 'casLoginView' with model
> {flowExecutionContext=[FlowExecutionImpl at 166aab6
> > > flow = 'login-webflow', flowSessions = list[[FlowSessionImpl at 151ac10
> flow =
> > > 'login-webflow', state = 'viewLoginForm', scope = map[[empty]]]]],
> > >
>
> flowExecutionKey=_c47C1F5B9-5DED-AAFB-857F-9E4486130F0D_k9A5E5A0F-C85B-22A0-
> > > F3C7-C2A669E26736} and static attributes {}>
> > > 2007-04-12 16:39:39,836 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Added model object
> > > 'flowExecutionKey' of type [java.lang.String] to request in view with
> name
> > > 'casLoginView'>
> > > 2007-04-12 16:39:39,836 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Added model object
> > > 'flowExecutionContext' of type
> > > [org.springframework.webflow.execution.impl.FlowExecutionImpl] to
> request in
> > > view with name 'casLoginView'>
> > > 2007-04-12 16:39:39,845 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Forwarded to
> resource
> > > [/WEB-INF/view/jsp/default/ui/casLoginView.jsp] in
> InternalResourceView
> > > 'casLoginView'>
> > > 2007-04-12 16:39:39,980 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Rendering view with
> name
> > > 'casLoginView' with model
> {flowExecutionContext=[FlowExecutionImpl at 131f2b4
> > > flow = 'login-webflow', flowSessions = list[[FlowSessionImpl at 3526cfflow
> =
> > > 'login-webflow', state = 'viewLoginForm', scope = map[[empty]]]]],
> > >
>
> flowExecutionKey=_cE87F32A3-1CE9-8208-1003-6F03F0053274_kAE1C8F60-7159-467B-
> > > 927F-F22199DEE3F2} and static attributes {}>
> > > 2007-04-12 16:39:39,980 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Added model object
> > > 'flowExecutionKey' of type [java.lang.String] to request in view with
> name
> > > 'casLoginView'>
> > > 2007-04-12 16:39:39,980 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Added model object
> > > 'flowExecutionContext' of type
> > > [org.springframework.webflow.execution.impl.FlowExecutionImpl] to
> request in
> > > view with name 'casLoginView'>
> > > 2007-04-12 16:39:39,983 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Forwarded to
> resource
> > > [/WEB-INF/view/jsp/default/ui/casLoginView.jsp] in
> InternalResourceView
> > > 'casLoginView'>
> > > 2007-04-12 16:39:43,256 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Rendering view with
> name
> > > 'casLoginView' with model
> {flowExecutionContext=[FlowExecutionImpl at 186ed7a
> > > flow = 'login-webflow', flowSessions = list[[FlowSessionImpl at 150f0a7
> flow =
> > > 'login-webflow', state = 'viewLoginForm', scope = map[[empty]]]]],
> > >
>
> flowExecutionKey=_c38A871B0-BE44-0F5A-BF1E-96DF68C35A9E_k8B61A4C1-DAA9-F1F7-
> > > 564C-0583FFC63E37} and static attributes {}>
> > > 2007-04-12 16:39:43,256 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Added model object
> > > 'flowExecutionKey' of type [java.lang.String] to request in view with
> name
> > > 'casLoginView'>
> > > 2007-04-12 16:39:43,256 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Added model object
> > > 'flowExecutionContext' of type
> > > [org.springframework.webflow.execution.impl.FlowExecutionImpl] to
> request in
> > > view with name 'casLoginView'>
> > > 2007-04-12 16:39:43,262 DEBUG
> > > [org.springframework.web.servlet.view.JstlView] - <Forwarded to
> resource
> > > [/WEB-INF/view/jsp/default/ui/casLoginView.jsp] in
> InternalResourceView
> > > 'casLoginView'>
> > >
> > >
> > >
> > > And I had modified the deployerConfigContext.xml already, as follow :
> > >
> > > <bean
> > >
> > > class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
> > > <property name="filter"
> > > value="uid=%u" />
> > > <property name="searchBase"
> > > value="ou=people,dc=plk,dc=org" />
> > > <property
> > > name="contextSource"
> > > ref="contextSource" />
> > > </bean>
> > > </list>
> > > </property>
> > > </bean>
> > >
> > > <bean id="contextSource"
> > > class="org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource
> ">
> > > <property name="authenticatedReadOnly" value="true"
> />
> > > <property name="password" value="secret" />
> > > <property name="pooled" value="true" />
> > > <property name="urls">
> > > <list>
> >
> > <value>ldap://ldap.plk.org:389/</value>
> > > </list>
> > > </property>
> > > <property name="userName" value="cn=Manager" />
> > > <property name="baseEnvironmentProperties">
> > > <map>
> > > <entry>
> > >
> > > <key><value>java.naming.security.protocol</value></key>
> > > <value>ssl</value>
> > > </entry>
> > > <entry>
> > >
> > > <key><value>java.naming.security.authentication</value></key>
> > > <value>simple</value>
> > > </entry>
> > > </map>
> > > </property>
> > > </bean>
> > >
> > >
> > >
> > > Thx.
> > >
> > > Albert
> > >
> > >
> > >
> > > _______________________________________________
> > > Yale CAS mailing list
> > > cas at tp.its.yale.edu
> > > http://tp.its.yale.edu/mailman/listinfo/cas
> > >
> >
> >
> > --
> > -Scott Battaglia
> >
> > LinkedIn: http://www.linkedin.com/in/scottbattaglia
>
>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070413/f83629df/attachment.html
More information about the cas
mailing list