Uday,
When you configure Service Management, you need to setup the
userDetailsService bean to include a listing of users authorized to use the
feature. In the deployerConfigContext.xml, it contains a dummy entry that
should be used as a template.
<bean id="userDetailsService"
class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
<property name="userMap">
<value>
username1=username1, ROLE_ADMIN
username2=username2, ROLE_ADMIN
...
</value>
</property>
</bean>
You must leave the role (ROLE_ADMIN) as is as that is how the
/WEB-INF/spring-configuration/securityContext.xml file is setup.
HTH,
A-
> <bean id="userDetailsService"
> class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
> <property name="userMap">
> <value>
> username=notused,ROLE_ADMIN
>
> </value>
> </property>
> </bean>
On 8/17/09 12:09 PM, "uday" <[email protected]> wrote:
> Hi All,
>
> I have problem accessing service management
> (http://localhost:8080/cas/services). When i try to login using my
> credentials, its giving me an "Authorization Failure"
>
> %%%%
> Authorization Failure
> You are not authorized to use this application for the following reason: Could
> not find user: xxxx.
> %%%%%
>
> Can anyone help me out, what changes should i make in-order to get the service
> management working (do i need to add/configure any other details)
>
> I am new to this & any suggestions or tips are greatly appreciated.
>
> FYI: My deployerConfigContext.xml details...
>
> <?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="contextSource"
> class="org.springframework.ldap.core.support.LdapContextSource">
> <property name="pooled" value="true"/>
> <property name="urls">
> <list>
> <value>ldap://ldap1/</value>
> </list>
> </property>
> <property name="userDn" value="cn=******"/> <property name="password"
> value="****/> <property name="baseEnvironmentProperties">
> <map>
> <entry>
> <key>
> <value>java.naming.security.authentication</value>
> </key>
> <value>simple</value>
> </entry>
> </map>
> </property>
> </bean>
>
>
>
> <bean id="authenticationManager"
> class="org.jasig.cas.authentication.AuthenticationManagerImpl">
> <property name="credentialsToPrincipalResolvers">
> <list>
> <bean
> class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPri
> ncipalResolver" />
> <bean
> class="org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPri
> ncipalResolver" />
> </list>
> </property>
>
> <property name="authenticationHandlers">
> <list>
> <bean
> class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredential
> sAuthenticationHandler"
> p:httpClient-ref="httpClient" />
>
>
> <bean class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
> <property name="filter" value="uid=%u" />
> <property name="searchBase" value="dc=bc,dc=edu" />
> <property name="contextSource" ref="contextSource" /> </bean>
>
>
> </list>
> </property>
> </bean>
>
>
> <bean id="userDetailsService"
> class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
> <property name="userMap">
> <value>
> username=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" /> </beans>
>
> Thanks
> Uday
--
Andrew Feller, Business System Programmer
LSU University Information Services
200 Frey Computing Services Center
Baton Rouge, LA 70803
Office: 225.578.3737
Fax: 225.578.6400
--
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