Red Hat Bugzilla – Bug 1253800
Users in external group removed, users remain in Foreman.
Last modified: 2016-04-22 11:35:45 EDT
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
Members no longer in the LDAP group remain in Satellite user group.
Members no longer in the LDAP group should be removed from Satellite user group.
I am using an old Sun LDAP for this test. Have not tried to reproduce on AD or OpenLDAP.
Created redmine issue http://projects.theforeman.org/issues/12296 from this bug
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.
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...