Tarik,

First, if you have a question please send the message once to the CAS users
list.  It generates less noise that way.  You do not increase your chances
of getting a response by sending it multiple times in such a short period of
time (I should also never be emailed personally if you have a question).

As for your question, if you are having trouble logging in via LDAP, ensure
the following:
you are doing authenticated reading (providing a username and password in
the Context with the appropriate LDAP properties set for your configuration)
and ensure that your filter and base are set correctly.

This page gives some example configurations of the Context and properties.
Note that your configuration may be different:
http://www.ja-sig.org/wiki/display/CASUM/LDAP

Thanks
-Scott

On 10/23/07, Tarik Arrad <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to deploy CAS with LDAP (OpenLDAP), after authentication i have
> this log messages :
>
> 2007-10-23 10:19:25,770 INFO [
> org.jasig.cas.web.flow.InitialFlowSetupAction]
> - <Setting ContextPath for cookies to: /cas>
> 2007-10-23 10:19:30,920 INFO
> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
> <AuthenticationHandler:
> org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler failed to
> authenticate the user which provided the following credentials: Driss>
> Exception in thread "Store ticketCache Expiry Thread"
> java.lang.NullPointerException
>     at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
>     at org.apache.log4j.Logger.getLogger(Logger.java:104)
>     at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java
> :283)
>     at
> org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(
> Log4JLogger.java:293)
>     at net.sf.ehcache.store.DiskStore.expiryThreadMain(DiskStore.java:834)
>     at net.sf.ehcache.store.DiskStore.access$700(DiskStore.java:59)
>     at net.sf.ehcache.store.DiskStore$ExpiryThread.run(DiskStore.java
> :1008)
> 2007-10-23 10:20:44,687 INFO
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - <FormObjectClass
> not
> set.  Using default class of
> org.jasig.cas.authentication.principal.UsernamePasswordCredentials with
> formObjectName credentials and validator
> org.jasig.cas.validation.UsernamePasswordCredentialsValidator.>
> 2007-10-23 10:20:47,878 INFO [
> org.jasig.cas.web.flow.InitialFlowSetupAction]
> - <Setting ContextPath for cookies to: /cas>
> 2007-10-23 10:20:53,176 INFO
> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
> <AuthenticationHandler:
> org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler failed to
> authenticate the user which provided the following credentials: Tarik>
> 2007-10-23 10:20:59,737 INFO
> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
> <AuthenticationHandler:
> org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler failed to
> authenticate the user which provided the following credentials: Manager>
> 2007-10-23 10:21:03,940 INFO
> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
> <Starting cleaning of expired tickets from ticket registry at [Tue Oct 23
> 10:21:03 WET 2007]>
> 2007-10-23 10:21:03,940 INFO
> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <0
> found to be removed.  Removing now.>
> 2007-10-23 10:21:03,940 INFO
> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
> <Finished cleaning of expired tickets from ticket registry at [Tue Oct 23
> 10:21:03 WET 2007]>
> 2007-10-23 10:23:45,405 INFO
> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
> <AuthenticationHandler:
> org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler failed to
> authenticate the user which provided the following credentials: Tarik>
> Exception in thread "Store ticketCache Expiry Thread"
> java.lang.NullPointerException
>     at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
>     at org.apache.log4j.Logger.getLogger(Logger.java:104)
>     at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java
> :283)
>     at
> org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(
> Log4JLogger.java:293)
>     at net.sf.ehcache.store.DiskStore.expiryThreadMain(DiskStore.java:834)
>     at net.sf.ehcache.store.DiskStore.access$700(DiskStore.java:59)
>     at net.sf.ehcache.store.DiskStore$ExpiryThread.run(DiskStore.java
> :1008)
> 2007-10-23 10:23:59,140 INFO
> [org.jasig.cas.web.flow.AuthenticationViaFormAction] - <FormObjectClass
> not
> set.  Using default class of
> org.jasig.cas.authentication.principal.UsernamePasswordCredentials with
> formObjectName credentials and validator
> org.jasig.cas.validation.UsernamePasswordCredentialsValidator.>
> 2007-10-23 10:24:02,829 INFO [
> org.jasig.cas.web.flow.InitialFlowSetupAction]
> - <Setting ContextPath for cookies to: /cas>
> 2007-10-23 10:24:12,016 INFO
> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
> <AuthenticationHandler:
> org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler failed to
> authenticate the user which provided the following credentials: Manager>
> 2007-10-23 10:24:17,246 INFO
> [org.jasig.cas.authentication.AuthenticationManagerImpl] -
> <AuthenticationHandler:
> org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler failed to
> authenticate the user which provided the following credentials: Tarik>
> 2007-10-23 10:24:18,374 INFO
> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
> <Starting cleaning of expired tickets from ticket registry at [Tue Oct 23
> 10:24:18 WET 2007]>
> 2007-10-23 10:24:18,374 INFO
> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - <0
> found to be removed.  Removing now.>
> 2007-10-23 10:24:18,374 INFO
> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
> <Finished cleaning of expired tickets from ticket registry at [Tue Oct 23
> 10:24:18 WET 2007]>
>
> Help Plz
> Tarik Arrad
>
> --
> View this message in context:
> http://www.nabble.com/CAS-and-LDAP-problem-tf4676586.html#a13361444
> Sent from the CAS Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>



-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to