Bug 577791 - LDAP: Appropriate role to existing user in rhq is not assigned against which the ldap group is mapped.
Summary: LDAP: Appropriate role to existing user in rhq is not assigned against which ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Configuration
Version: 3.0.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Sunil Kondkar
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: jon24-ldap
TreeView+ depends on / blocked
 
Reported: 2010-03-29 09:05 UTC by Sunil Kondkar
Modified: 2010-08-12 16:45 UTC (History)
0 users

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


Attachments (Terms of Use)

Description Sunil Kondkar 2010-03-29 09:05:34 UTC
Description of problem:
Appropriate role to existing user in rhq is not assigned against which the ldap group is mapped.

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

3.0.0-SNAPSHOT

How reproducible:


Steps to Reproduce:

1. Login to RHQ as rhqadmin and create a user without assigning a role. (Ex: sameuser)

2. Create a similar user in ldap as in #1. (Ex: sameuser)

3. Add the user to an already existing ldap group (which is mapped to a certain role in RHQ. Ex: All resources role)
 
4. Login to RHQ as the user created in #1.(Ex: sameuser)

5. Check if the appropriate role is assigned against which the ldap group is mapped.
  
Actual results:

The user is able to login to rhq but he is not assigned the role against which the ldap group is mapped.

Expected results:

User should be able to login and the appropriate role should be assigned against which the ldap group is mapped.

Additional info:

Comment 1 Charles Crouch 2010-04-05 15:43:08 UTC
Mapping RHQ users (created in step1) to LDAP users (created in step 2) is not supported.

If you create a user in RHQ then you manage its roles through RHQ.
If you create a user in LDAP then you manage its groups in LDAP and the role/group mapping in RHQ.

In your case if you were to delete the RHQ user created in step1, then we should attempt to authenticate and authorize against ldap and everything should work as expected

Comment 2 Charles Crouch 2010-04-05 15:44:12 UTC
Please retest by removing the RHQ database user and checking the ldap user is logged in as appropriate

Comment 3 Sunil Kondkar 2010-04-06 12:33:20 UTC
Verified against the master build#153. 

Removed the user from RHQ users list and logged in as the same user in rhq.
Observed that user is assigned the appropriate role against which the ldap group is mapped.

Please suggest if this test case (mapping existing rhq users to ldap users) could be considered as an enhancement in future?

Comment 4 Corey Welton 2010-08-12 16:45:11 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.