Bug 577828 - LDAP: ldap user should be given the least privileges of the two roles to which he belongs.
Summary: LDAP: ldap user should be given the least privileges of the two roles to whic...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: 3.0.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Sunil Kondkar
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: jon24-ldap
TreeView+ depends on / blocked
 
Reported: 2010-03-29 11:52 UTC by Sunil Kondkar
Modified: 2010-08-12 16:52 UTC (History)
0 users

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-12 16:52:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Sunil Kondkar 2010-03-29 11:52:00 UTC
Description of problem:

LDAP: ldap user should be given the least privileges of the two roles to which he belongs.

Version-Release number of selected component (if applicable):

3.0.0-SNAPSHOT

How reproducible:


Steps to Reproduce:

1. Make ldap user (Ex: user3) member of two different groups say 'Test1' and 'Test2' in ldap.
2. The two different groups are mapped to two different roles in rhq. 
( Group 'Test1' is mapped to role 'All Resources' and group 'Test2' is mapped to a role say 'Role2' having least privileges.
3. Login as ldap user (Ex: user3) into rhq.
4. Check the user role privileges after login.

  
Actual results:

User is not given least privileges of the two roles to which he belongs. ( User is given privileges of role 'All Resources')

Expected results:

User should be given the least privileges of the two roles to which he belongs. (Should be given 'Role2' privileges)

Additional info:

Comment 1 Charles Crouch 2010-04-05 16:02:20 UTC
I think we should carry on with the same behaviour as we have currently in RHQ. This can be tested without using LDAP at all, just assign a user to two RHQ roles and see which privileges they get. I think it will probably end up with the superset of privileges, which has proved fine thus far.

Comment 2 Sunil Kondkar 2010-04-06 12:11:16 UTC
Verified as suggested in rhq against the maser build#153.
If a user is assigned two different roles having different privileges in rhq, he gets the higher privileges of two roles.

Comment 3 Corey Welton 2010-08-12 16:52:25 UTC
Mass-closure of verified bugs against JON.


Note You need to log in before you can comment on or make changes to this bug.