Read Only user can acknoledge alarms

Description

I created a new user, checking the box labeled "read-only".

Yet once logged with this user, I can acknowledge or clear alarms in the alarms panel.

I believe this behaviour is faulty ?

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed May 9, 2011 at 11:21 AM

Unfortunately, the "Read-Only" checkbox appears to not actually be wired to anything. =)

To make a user read-only, you will have to edit $OPENNMS_HOME/etc/magic-users.properties to add the user to the read-only role. I've removed the Read-Only checkbox for now, so it is less confusing.

Philippe Guillebert April 18, 2011 at 9:17 AM

Tested with UI in "ACL mode", the same problem occurs.

Philippe Guillebert March 30, 2011 at 5:12 AM

I checked in the webapp page, the test seems ok :

<% if( request.isUserInRole( Authentication.ADMIN_ROLE ) || !request.isUserInRole( Authentication.READONLY_ROLE ) ) { %>

I suppose this means the role is not set correctly when reading the user from the database.

Configuration

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created March 28, 2011 at 7:43 AM
Updated May 9, 2011 at 11:21 AM
Resolved May 9, 2011 at 11:21 AM