RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 2148887 - MemberManager with groups fails
Summary: MemberManager with groups fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ipa
Version: 9.2
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On: 2056009
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-28 09:32 UTC by Florence Blanc-Renaud
Modified: 2023-05-09 08:26 UTC (History)
13 users (show)

Fixed In Version: ipa-4.10.1-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2056009
Environment:
Last Closed: 2023-05-09 07:33:20 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure freeipa issue 9286 0 None None None 2022-11-28 09:33:55 UTC
Red Hat Issue Tracker FREEIPA-9061 0 None None None 2022-11-28 09:40:17 UTC
Red Hat Issue Tracker RHELPLAN-140595 0 None None None 2022-11-28 09:40:31 UTC
Red Hat Product Errata RHBA-2023:2205 0 None None None 2023-05-09 07:33:35 UTC

Comment 1 Florence Blanc-Renaud 2022-11-28 17:54:46 UTC
Fixed upstream
ipa-4-10:
https://pagure.io/freeipa/c/42be04fe4ff317efe599dcbc2637f94ecc6fa220

Comment 2 Florence Blanc-Renaud 2022-12-02 12:22:08 UTC
Fixed upstream
ipa-4-9:
https://pagure.io/freeipa/c/651e28c1fb6b86ad1fbd4ea98644e00b7042499c

Comment 9 Mohammad Rizwan 2023-01-11 12:21:13 UTC
version:
ipa-server-4.10.1-2.el9.x86_64

steps:
1. Install 7.9 server then migrate to rhel8.7. Make rhel8.7 server crl master server.
2. Added user and required groups
#ipa user-add idmuser
#ipa group-add role-groupmanager
#ipa group-add role-usergroup-A
#ipa group-add-member role-groupmanager --user idmuser
#ipa group-add-member-manager --groups role-groupmanager role-usergroup-A
3. kinit as idmuser and add a member to role-user-group-A
[root@replica87 ~]# ipa group-add-member --users admin role-usergroup-A
  Group name: role-usergroup-a
  GID: 143100003
  Membership managed by groups: role-groupmanager
  Failed members: 
    member user: admin: Insufficient access: Insufficient 'write' privilege to the 'member' attribute of entry 'cn=role-usergroup-a,cn=groups,cn=accounts,dc=testrelm,dc=test'.
    member group: 
    member service: 
    member User ID override: 
-------------------------
Number of members added 0
-------------------------
Add rhel9.2 replica against rhel87 server
[root@replica92 ~]# cat /usr/share/ipa/updates/20-aci.update  | grep 'Allow member managers'
# Allow member managers to modify members of user groups
remove:aci: (targetattr = "member")(targetfilter = "(objectclass=ipaUserGroup)")(version 3.0; acl "Allow member managers to modify members of user groups"; allow (write) userattr = "memberManager#USERDN";)
add:aci: (targetattr = "member")(targetfilter = "(objectclass=ipaUserGroup)")(version 3.0; acl "Allow member managers to modify members of user groups"; allow (write) userattr = "memberManager#USERDN" or userattr = "memberManager#GROUPDN";)
# Allow member managers to modify members of host groups
remove:aci: (targetattr = "member")(targetfilter = "(objectclass=ipaHostGroup)")(version 3.0; acl "Allow member managers to modify members of host groups"; allow (write) userattr = "memberManager#USERDN";)
add:aci: (targetattr = "member")(targetfilter = "(objectclass=ipaHostGroup)")(version 3.0; acl "Allow member managers to modify members of host groups"; allow (write) userattr = "memberManager#USERDN" or userattr = "memberManager#GROUPDN";)
[root@replica92 ~]# 

Now try same operation as in 3 on rhel87 server
[root@replica87 ~]# ipa group-add-member --users admin role-usergroup-A
  Group name: role-usergroup-a
  GID: 143100003
  Member users: admin
  Membership managed by groups: role-groupmanager
-------------------------
Number of members added 1
-------------------------


Based on above observations, marking the bug verified.

Comment 10 Florence Blanc-Renaud 2023-03-15 08:48:38 UTC
Test added upstream
master:
https://pagure.io/freeipa/c/4acd9fe9f7f0934ff26bbd6254c036341b1dae52

Test case: 
ipatests/test_integration/test_membermanager.py::TestMemberManager::test_member_manager_upgrade_scenario

Comment 13 errata-xmlrpc 2023-05-09 07:33:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (ipa bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2205


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