Project

General

Profile

Bug #21502

Local user disappears from user-group with external group

Added by Daniel Lobato Garcia almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1412209

Description of problem:
When attaching local user to user-group where is already set external group from LDAP, the user disappears when clicked on Submit button. When used hammer, the user disappears after
  1. foreman-rake ldap:refresh_usergroups
    No error shown in WebUI/hammer/production.log

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

How reproducible:
100%

Steps to Reproduce:
1. Set up LDAP authentication.
2. Create a user-group and in third tab "External groups" specify some external group. Submit.
3. Edit the user-group and add some local user.

Actual results:
In WebUI: local user is not saved.
With hammer: user disappears later

~~~
  1. hammer user-group add-user --name 'Group Test' --user user_test
    The user has been associated
  2. hammer user info --login user_test | grep -A1 'User groups'
    User groups:
    Group Test
  3. sudo -u foreman /usr/sbin/foreman-rake ldap:refresh_usergroups
    Successfully decrypted field for AuthSourceLdap LDAP-test
  4. hammer user info --login user_test | grep -A1 'User groups'
    User groups:

~~~

Expected results:
- User can be added to group with External group
- OR local users are not available in list of users
- OR print error that it's not possible and write it to log

Additional info:
Workaround - create user-group with external group. Than create another "composite" user-group which will contain both local users and user-group with external group.

Associated revisions

Revision 97371ff9 (diff)
Added by Daniel Lobato Garcia almost 3 years ago

Fixes #21502 - Disable editing users in group with EUG (#4962)

Adding Users to User Groups with External User Groups does not
work. Currently the only feedback the user gets is that Users get
automatically removed after the form is submitted - no warning or
mention.

In order not to confuse the user or make the user waste their time
adding users, we should display a warning when there are External User
Groups linked to a User Group.

History

#1 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4962 added

#2 Updated by Marek Hulán almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 296
  • Subject changed from Local user disappears from user-group with external group to Local user disappears from user-group with external group

#3 Updated by Anonymous almost 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF