Bug 577800
Summary: | LDAP: If an existing ldap user is deleted and recreated and is not associated to any group in ldap, previous role permissions are applied to user after login. | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Sunil Kondkar <skondkar> |
Component: | Configuration | Assignee: | Simeon Pinder <spinder> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Welton <cwelton> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 3.0.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-08-12 16:53:25 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 577267, 577817 |
Description
Sunil Kondkar
2010-03-29 09:52:03 UTC
It looks like we're not refreshing the users group list on login. The use case here would be of a user who goes from being an Admin to a regular User. They shouldn't maintain their old permissions. Reproduced the described behavior. Problem: The rhq group runtime account membership was not being synchronized with the ldap group information. Added conditional check to ldaploginmodule to refresh the membership information on login. Commit hash: git 80e3403ada9b0b215715dc3d6ff15d9c016fd451 Additional information: -Ldap group authorization happens in addition to successful ldap authentication if both the 'groupfilter' and the 'groupmember' fields are set. -Group Search Filter should be in the form of name=value Ex. 'objectclass=groupOfUniqueNames' with whatever group specific query is valid for the ldap server being used, and should return all the ldap groups that should be available for ldap mapping. -Group Member Filter should be of form Ex. 'uniqueMember' with whatever group specific filter is valid for the ldap server being used. -At runtime the groupfilter and groupmember values are combined with the uid expression for the user being authenticated into a runtime check that the current user exists in the specified groups : Ex.(&(objectclass=groupOfUniqueNames)(uniqueMember=uid=testuser1,ou=People,dc=test, dc=com)) Available in master build >= 230. *** Bug 577817 has been marked as a duplicate of this bug. *** Verified on jon build# 108 (Revision: 10611) If an existing ldap user also a member of a ldap group which is mapped to a rhq role is deleted, is again recreated in ldap and is not associated to any group in ldap. After login to rhq it is observed that the previous role permissions are not applied to user and user logs in as a guest which is as expected. Mass-closure of verified bugs against JON. |