Hi Scott,
Thank you very much

Yes, I had created one under ou=users in ldap://docs.cignex.com:10389 for
testing purpose.

I installed ADS in my local machine where in i was able to add users but it
is not listing the added users,but if I again add the same users it throws
an error saying that the user already exists.


Thank you
Ammaiyan

On Thu, Dec 3, 2009 at 7:02 PM, Scott Battaglia
<[email protected]>wrote:

> Are there any other users under "system"?
>
>
>
> On Thu, Dec 3, 2009 at 8:28 AM, Ammaiyan Raman <[email protected]>wrote:
>
>> Hi,
>> I am trying use cas sso and I followed the instructions given in
>> http://www.ja-sig.org/wiki/display/CASUM/Best+Practice+-+Setting+Up+CAS+Locally+using+the+Maven2+WAR+Overlay+Methodand
>>  I am able login with the user admin/secret,but when I try to login with
>> other credentials which is there in Apache Directory server getting error
>> saying invalid credentials. Below are my configuration details and the log
>> messages and can you please help me out to over come this issue.
>>
>>
>>
>> CAS 3.3.5
>> Tomcat 6.0.20
>>
>> *deployerConfigContext.xml*
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <beans xmlns="http://www.springframework.org/schema/beans";
>>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>        xmlns:p="http://www.springframework.org/schema/p";
>>        xsi:schemaLocation="http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>>
>>     <bean id="authenticationManager"
>>         class="org.jasig.cas.authentication.AuthenticationManagerImpl">
>>
>>         <property name="credentialsToPrincipalResolvers">
>>             <list>
>>
>>                 <bean
>>
>> class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver"
>> />
>>
>>                 <bean
>>
>> class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver"
>> />
>>             </list>
>>         </property>
>>
>>         <property name="authenticationHandlers">
>>             <list>
>>                 <bean
>> class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
>>                     p:httpClient-ref="httpClient" />
>>                 <bean
>> class="org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >
>>                     <property name="filter" value="uid=%u,ou=system" />
>>                     <property name="contextSource" ref="contextSource" />
>>                 </bean>
>>             </list>
>>         </property>
>>     </bean>
>>     <bean id="userDetailsService"
>> class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
>>         <property name="userMap">
>>             <value>
>>                 admin=notused,ROLE_ADMIN
>>             </value>
>>         </property>
>>     </bean>
>>     <bean id="attributeRepository"
>>
>> class="org.jasig.services.persondir.support.StubPersonAttributeDao">
>>         <property name="backingMap">
>>             <map>
>>                 <entry key="uid" value="uid" />
>>                 <entry key="eduPersonAffiliation"
>> value="eduPersonAffiliation" />
>>                 <entry key="groupMembership" value="groupMembership" />
>>             </map>
>>         </property>
>>     </bean>
>>
>>     <bean id="serviceRegistryDao"
>> class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl" />
>>
>>     <bean id="contextSource"
>> class="org.springframework.ldap.core.support.LdapContextSource">
>>         <property name="pooled" value="true"/>
>>         <property name="urls">
>>             <list>
>>                 <!-- <value>ldap://localhost:10389</value> -->
>>                 <value>ldap://docs.cignex.com:10389/</value>
>>             </list>
>>         </property>
>>         <property name="userDn" value="uid=admin,ou=system"/>
>>         <property name="password" value="secret"/>
>>         <property name="baseEnvironmentProperties">
>>             <map>
>>                 <entry key="java.naming.security.authentication"
>> value="simple" />
>>             </map>
>>         </property>
>>     </bean>
>> </beans>
>>
>> *Error message from the log*
>>
>> *User : admin/secret*
>> *************************** AuthenticationViaFormAction
>> *******************
>> *************************** RequestContext
>> *******************[RequestControlCon
>> texti...@149e631 externalContext = 
>> [servletexternalcont...@a7bd7arequestparamet
>> erMap = map['lt' ->
>> '_c04D8E9B0-4EEC-26A3-B699-D364C8E92AD6_k3007D9EA-2049-6732-
>> 0472-F54925488F55', '_eventId' -> 'submit', 'password' -> 'secret',
>> 'submit' ->
>> 'LOGIN', 'username' -> 'admin']], requestScope = map[[empty]], attributes
>> = map[
>> 'method' -> 'submit'], flowExecution = [flowexecutioni...@88a970 flow =
>> 'login-w
>> ebflow', flowSessions = list[[flowsessioni...@5074de flow =
>> 'login-webflow', sta
>> te = 'submit', scope = map['service' -> [null], 'credentials' ->
>> [username: admi
>> n], 'currentFormObject' -> [username: admin], 'warnCookieValue' -> false,
>> 'ticke
>> tGrantingTicketId' -> [null]], flashMap = map['
>> org.springframework.validation.Bi
>> ndException.currentFormObject' ->
>> org.springframework.validation.BindException:
>> org.springframework.validation.BeanPropertyBindingResult: 0 errors,
>> 'org.springf
>> ramework.validation.BindException.credentials' ->
>> org.springframework.validation
>> .BindException: org.springframework.validation.BeanPropertyBindingResult:
>> 0 erro
>> rs], status = Active]]]]
>> *************************** WebUtils *******************
>> ****** tgtFromRequest :null
>> ****** tgtFromFlow :null
>> 2009-12-03 17:14:10,006 INFO
>> [org.jasig.cas.authentication.AuthenticationManager
>> Impl] - <AuthenticationHandler:
>> org.jasig.cas.adaptors.ldap.FastBindLdapAuthenti
>> cationHandler successfully authenticated the user which provided the
>> following c
>> redentials: [username: admin]>
>> *************************** WebUtils *******************
>> ****** tgtFromRequest
>> :TGT-1-gMfYBemavNdNCxr3jFUJ2Ytj5xnbSIzsT1MG7nHAhx4ck6AiMY-cas
>> ****** tgtFromFlow :null
>>
>> *User ammaiyan*
>>
>> *************************** AuthenticationViaFormAction
>> *******************
>> *************************** RequestContext
>> *******************[RequestControlCon
>> texti...@4eff2c externalContext = 
>> [servletexternalcont...@52a2e3requestparamete
>> rMap = map['lt' ->
>> '_c6ED6AF73-E047-7414-4477-2CD19C663537_kB3E0CD3C-AF18-C3D2-1
>> F0A-0897BA3ACE5F', '_eventId' -> 'submit', 'password' -> 'ammaiyan',
>> 'submit' ->
>>  'LOGIN', 'username' -> 'ammaiyan']], requestScope = map[[empty]],
>> attributes =
>> map['method' -> 'submit'], flowExecution = [flowexecutioni...@143ed74flow = 
>> 'lo
>> gin-webflow', flowSessions = list[[flowsessioni...@9a6bbb flow =
>> 'login-webflow'
>> , state = 'submit', scope = map['service' -> [null], 'credentials' ->
>> [username:
>>  ammaiyan], 'currentFormObject' -> [username: ammaiyan], 'warnCookieValue'
>> -> fa
>> lse, 'ticketGrantingTicketId' -> [null]], flashMap = map['
>> org.springframework.va
>> lidation.BindException.currentFormObject' ->
>> org.springframework.validation.Bind
>> Exception: org.springframework.validation.BeanPropertyBindingResult: 0
>> errors, '
>> org.springframework.validation.BindException.credentials' ->
>> org.springframework
>> .validation.BindException:
>> org.springframework.validation.BeanPropertyBindingRes
>> ult: 0 errors], status = Active]]]]
>> *************************** WebUtils *******************
>> ****** tgtFromRequest :null
>> ****** tgtFromFlow :null
>> 2009-12-03 17:14:44,099 INFO
>> [org.jasig.cas.authentication.AuthenticationManager
>> Impl] - <AuthenticationHandler:
>> org.jasig.cas.adaptors.ldap.FastBindLdapAuthenti
>> cationHandler failed to authenticate the user which provided the following
>> crede
>> ntials: [username: ammaiyan]>
>> *************************** AuthenticationViaFormAction
>> ******************* 2
>> *****TicketException************* :error.authentication.credentials.bad
>> *************************** AuthenticationViaFormAction
>> ******************* 3
>> errors :org.springframework.validation.BindException:
>> org.springframework.valida
>> tion.BeanPropertyBindingResult: 0 errors
>>
>>
>> Thank you,
>> Ammaiyan
>>
>>
>>
>>
>>  --
>> 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
>>
>>
> --
> 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
>
>

-- 
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

Reply via email to