Dashboard > Mule FAQ - Open Source ESB and Integration Platform > ... > Frequently Asked Questions (FAQ) > How to configure the Mule Security Manager and Acegi 1.0.1
  Mule FAQ - Open Source ESB and Integration Platform Log In | Sign Up   View a printable version of the current page.  
  How to configure the Mule Security Manager and Acegi 1.0.1

Added by jason ball , last edited by Kynan Fraser on Mar 22, 2007  (view change)
Labels: 
(None)

If you review the documentation at http://www.customware.net/repository/pages/createpage.action?spaceKey=MULE&fromPageId=1924 page on the Mule home page, the following securityContext is defined:

<beans>
    <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
        <property name="authenticationDao">
            <ref bean="inMemoryDaoImpl"/>
        </property>
    </bean>

    <bean id="inMemoryDaoImpl" class="org.acegisecurity.providers.dao.memory.InMemoryDaoImpl">
        <property name="userMap">
            <value>
                rossross=ross,ROLE_ADMIN
                anonanon=anon,ROLE_ANONYMOUS
            </value>
        </property>
    </bean>
</beans>

I found the above would not work.  A little digging around Acegi and I found the imMemoryDaoImpl class does not exist, instead use the following securityContext.xml:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
        <property name="userDetailsService">
            <ref bean="inMemoryDaoImpl"/>
        </property>
    </bean>

    <bean id="inMemoryDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
        <property name="userMap">
            <value>
                jason=jason,ROLE_ADMIN
                anon=anon,ROLE_ANONYMOUS
            </value>
        </property>
    </bean>
</beans>



And the rest of the documentation on the page referenced above should be correct.

Copyright(c) CustomWare Asia Pacific Pty Ltd
Powered by Atlassian Confluence 2.7.3, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators