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 1187540 - Full set of objectclass not available post group detach.
Summary: Full set of objectclass not available post group detach.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.1
Hardware: Unspecified
OS: Linux
medium
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
: 1187548 (view as bug list)
Depends On:
Blocks: 1187501
TreeView+ depends on / blocked
 
Reported: 2015-01-30 11:39 UTC by Gowrishankar Rajaiyan
Modified: 2015-03-05 10:19 UTC (History)
4 users (show)

Fixed In Version: ipa-4.1.0-18.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 10:19:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0442 0 normal SHIPPED_LIVE Moderate: ipa security, bug fix, and enhancement update 2015-03-05 14:50:39 UTC

Description Gowrishankar Rajaiyan 2015-01-30 11:39:22 UTC
Description of problem: After detaching a managed group from user, the full set of objectclass is not available. And hence, adding a user to this group post detach fails.


Version-Release number of selected component (if applicable):
ipa-server-4.1.0-16.el7.x86_64

How reproducible: Always


Steps to Reproduce:
1. ipa user-add --first gs --last r shanks
2. ipa group-detach shanks 
3. ipa group-show shanks --all 
4. ipa group-add-member shanks --users=user1


Actual results:
[root@qe-blade-05 ~]# ipa group-show shanks --all 
  dn: cn=shanks,cn=groups,cn=accounts,dc=idmqe,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com
  Group name: shanks
  Description: User private group for shanks
  GID: 787600007
  ipauniqueid: 5f1a1a88-a873-11e4-947d-00215e2032c0
  objectclass: posixgroup, top, ipaobject
[root@qe-blade-05 ~]# 

[root@qe-blade-05 ~]# ipa group-add-member shanks --users=user1
  Group name: shanks
  Description: User private group for shanks
  GID: 787600007
  Failed members: 
    member user: user1: attribute "member" not allowed
    member group: 
-------------------------
Number of members added 0
-------------------------
[root@qe-blade-05 ~]# 



Expected results: Should contain full set of objectclass post detach and should be able to add a user to it.


Additional info: https://fedorahosted.org/freeipa/ticket/250

Comment 1 Gowrishankar Rajaiyan 2015-01-30 11:47:20 UTC
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-group-cli-rename-02: Rename group after detaching from the UPG
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [  BEGIN   ] :: Detach user's private group. :: actually running 'detachUPG supercr1'
----------------------------------------------
Detached group "supercr1" from user "supercr1"
----------------------------------------------
:: [ 07:48:34 ] :: User Private Group supercr1 detached successfully.
:: [   PASS   ] :: Detach user's private group. (Expected 0, got 0)
:: [  BEGIN   ] :: Verify group is regular group now. :: actually running 'verifyGroupClasses supercr1 posix'
:: [ 07:48:35 ] :: Group type is posix
objectclass: posixgroup, top, ipaobject
:: [ 07:48:35 ] :: objectclass top was returned as expected with group-show --all
:: [ 07:48:36 ] :: ERROR - objectclass groupofnames was not returned with group-show --all
:: [ 07:48:36 ] :: ERROR - objectclass nestedgroup was not returned with group-show --all
:: [ 07:48:36 ] :: ERROR - objectclass ipausergroup was not returned with group-show --all
objectclass: posixgroup, top, ipaobject
:: [ 07:48:36 ] :: objectclass ipaobject was returned as expected with group-show --all
objectclass: posixgroup, top, ipaobject
:: [ 07:48:36 ] :: objectclass posixgroup was returned as expected with group-show --all
:: [   FAIL   ] :: Verify group is regular group now. (Expected 0, got 1)

Comment 4 Martin Kosek 2015-01-30 12:10:26 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4874

Comment 5 Martin Kosek 2015-01-30 12:18:00 UTC
*** Bug 1187548 has been marked as a duplicate of this bug. ***

Comment 6 Martin Kosek 2015-01-30 12:22:27 UTC
This is indeed a RHEL-7.1 regression, patch fixing it submitted upstream.

Comment 9 Gowrishankar Rajaiyan 2015-02-02 13:55:22 UTC
[root@apollo ~]# ipa user-add shanks --first=Gowrishankar --last=Rajaiyan
-------------------
Added user "shanks"
-------------------
  User login: shanks
  First name: Gowrishankar
  Last name: Rajaiyan
  Full name: Gowrishankar Rajaiyan
  Display name: Gowrishankar Rajaiyan
  Initials: GR
  Home directory: /home/shanks
  GECOS: Gowrishankar Rajaiyan
  Login shell: /bin/sh
  Kerberos principal: shanks.ENG.BOS.REDHAT.COM
  Email address: shanks.eng.bos.redhat.com
  UID: 1610000003
  GID: 1610000003
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False
[root@apollo ~]# ipa group-detach shanks
------------------------------------------
Detached group "shanks" from user "shanks"
------------------------------------------
[root@apollo ~]# ipa group-show --all
Group name: shanks
  dn: cn=shanks,cn=groups,cn=accounts,dc=idmqe,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com
  Group name: shanks
  Description: User private group for shanks
  GID: 1610000003
  ipauniqueid: b3e9fb7a-aae2-11e4-9975-0015172f2b30
  objectclass: ipaobject, top, ipausergroup, posixgroup, groupofnames, nestedgroup
[root@apollo ~]# 
[root@apollo ~]# ipa group-add-member shanks --users=user0001
  Group name: shanks
  Description: User private group for shanks
  GID: 1610000003
  Member users: user0001
-------------------------
Number of members added 1
-------------------------
[root@apollo ~]# ipa group-show --all shanks
  dn: cn=shanks,cn=groups,cn=accounts,dc=idmqe,dc=lab,dc=eng,dc=bos,dc=redhat,dc=com
  Group name: shanks
  Description: User private group for shanks
  GID: 1610000003
  Member users: user0001
  ipauniqueid: b3e9fb7a-aae2-11e4-9975-0015172f2b30
  objectclass: ipaobject, top, ipausergroup, posixgroup, groupofnames, nestedgroup
[root@apollo ~]# 


[root@apollo ~]# ipa group-mod --rename=new_group1 shanks
-----------------------
Modified group "shanks"
-----------------------
  Group name: new_group1
  Description: User private group for shanks
  GID: 1610000003
  Member users: user0001
[root@apollo ~]# ipa group-find new_group1
---------------
1 group matched
---------------
  Group name: new_group1
  Description: User private group for shanks
  GID: 1610000003
  Member users: user0001
----------------------------
Number of entries returned 1
----------------------------
[root@apollo ~]# 


[root@apollo ~]# rpm -q ipa-server
ipa-server-4.1.0-18.el7.x86_64
[root@apollo ~]#

Comment 11 errata-xmlrpc 2015-03-05 10:19:40 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, 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://rhn.redhat.com/errata/RHSA-2015-0442.html


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