Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1253800 - Users in external group removed, users remain in Foreman.
Summary: Users in external group removed, users remain in Foreman.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.1.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-14 18:04 UTC by James
Modified: 2023-01-11 14:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-18 01:53:05 UTC
Target Upstream Version:
Embargoed:
jwest: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 12296 0 Normal Rejected Users in external group removed, users remain in Foreman. 2019-12-28 05:18:59 UTC

Description James 2015-08-14 18:04:12 UTC
Description of problem:
External group in Foreman linked to LDAP.  Refresh button populates group members as expected.  Remove all users from group in LDAP, refresh button has comes back with: "Group does not have any members" as expected.  However the previous user account still exists in that group even though they are no longer in said group in LDAP.


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

Red Hat Satellite
Version 6.1.1 © 2014 Red Hat Inc.
Includes Foreman © 2009-2015 Paul Kelly and Ohad Levy


How reproducible: 100%


Steps to Reproduce:
1. Create user group in Satellite Server
2. Link it to external LDAP group
3. Refresh the LDAP Satellite group
4. Note members of group post refresh
5. Remove all group members in LDAP
6. Refresh the LDAP Satellite group
7. View the user group members

Actual results:
Members no longer in the LDAP group remain in Satellite user group.

Expected results:
Members no longer in the LDAP group should be removed from Satellite user group.

Additional info:
I am using an old Sun LDAP for this test.  Have not tried to reproduce on AD or OpenLDAP.

Comment 1 Bryan Kearney 2015-10-23 15:39:45 UTC
Created redmine issue http://projects.theforeman.org/issues/12296 from this bug

Comment 2 Bryan Kearney 2015-10-28 19:27:16 UTC
Can you provide debug logs (with LDAP enabled)? http://theforeman.org/manuals/latest/index.html#7.2Debugging

ldapsearch output of the groups would be useful too.

Comment 3 Bryan Kearney 2016-02-18 01:53:05 UTC
From email:

You can close mine (or I will?).  The LDAP server I was testing with is no longer available...   I cannot replicate on other (more modern/non-SUN) LDAP servers...  

-James


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