Anonymous Dashboards and Spring Security Framework
Dan Norman <[email protected]>
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <[email protected]> |
I have a new install of OpenNMS 1.8.8 Snapshot on Ubuntu Lucid 10.04.1. Everything has been going smoothly discovering nodes etc. . One of the things that we were excited to implement was Anonymous Dashboards. I have been following the Dashboard instructions on the wiki (http://www.opennms.org/wiki/Dashboard). Everything goes smoothly until I get to the Security XML section.
The file applicationContext-acegi-security.xml is not present. I have gathered in OpenNMS 1.7 that the security framework changed from Acegis to Spring Security and now there is a file named applicationContext-spring-security.xml Anonymous .xml .
I have looked through the file and the filterChainProxy and filterInvocationInterceptor are no longer present.
I added the following to the <http > area:
<intercept-url pattern="/pcpdash*" access="ROLE_USER,ROLE_DASHBOARD" />.
Then placed this in the mappedEntryPoint <beans:list> :
<beans:value>/pcpdash*</beans:value>
With these changes in place and a restart of OpenNMS I am able to navigate to the /pcpdash but am asked for basic authentication. If I put the username (pcpgj) and password in that I created the for the dashboard the view looks perfect. When I try and add the anonymous processing is where things stop working.
I found on the Spring Security website a class that has a similar name to org.acegisecurity.providers.anonymous.AnonymousProcessingFilter used in the OpenNMS wiki article. I also found an example of its use (http://static.springsource.org/spring-security/site/docs/2.0.x/reference/anonymous.html) . I pasted these beans in based off of the OpenNMS wiki and the Spring Security example just above the remarked out radius authentication section.
<bean id="pcpdashAnonymousProcessingFilter"
class="org.springframework.security.providers.anonymous.AnonymousProcessingFilter">
<property name="key" value="foobar"/>
<property name="userAttribute" value="pcpgj,ROLE_DASHBOARD"/>
</bean>
<bean id="pcpdashAanonymousAuthenticationProvider"
class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
<property name="key" value="foobar"/>
</bean>
Once this is added and I restart OpenNMS I get an HTTP 503 error when I navigate to the main /openms or the dashboard /pcpdash . I have to say that Web Security is way far away from anything that I know. I appreciate any guidance or assistance in this matter.
Thank You
Dan
________________________________
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is solely for the use by the intended recipient(s) and may contain information that is confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure, distribution or forwarding of this message or its attachments is strictly prohibited. If you are not the intended recipient, please contact the sender via reply email and destroy the original and all copies of this message and its attachment.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-install mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install