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 837357 - Attributelevelrights differs in permission-show and permission-mod for the same permission
Summary: Attributelevelrights differs in permission-show and permission-mod for the sa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 6.4
Assignee: Rob Crittenden
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-03 15:33 UTC by Dmitri Pal
Modified: 2013-08-19 14:22 UTC (History)
2 users (show)

Fixed In Version: ipa-3.0.0-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 09:16:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 0 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 08:22:21 UTC

Description Dmitri Pal 2012-07-03 15:33:55 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/2875

For permission with target group set following attributes level rights were sent in:
permission_show command:
{{{
"attributelevelrights": {
    "aci": "rscwo",
    "attrs": "rscwo",
    "businesscategory": "rscwo",
    "cn": "rscwo",
    "description": "rscwo",
    "filter": "rscwo",
    "group": "rscwo",
    "ipapermissiontype": "rscwo",
    "member": "rscwo",
    "memberof": "rscwo",
    "nsaccountlock": "rscwo",
    "o": "rscwo",
    "objectclass": "rscwo",
    "ou": "rscwo",
    "owner": "rscwo",
    "permissions": "rscwo",
    "seealso": "rscwo",
    "subtree": "rscwo",
    "targetgroup": "rscwo",
    "type": "rscwo"
},
}}}
permission_mod command:
{{{
"attributelevelrights": {
    "aci": "rscwo",
    "businesscategory": "rscwo",
    "cn": "rscwo",
    "description": "rscwo",
    "ipapermissiontype": "rscwo",
    "member": "rscwo",
    "nsaccountlock": "rscwo",
    "o": "rscwo",
    "objectclass": "rscwo",
    "ou": "rscwo",
    "owner": "rscwo",
    "seealso": "rscwo"
},
}}}

commands executed as admin user.

Effect: user can't modify target group after mod in Web UI. He have to refresh the page.

Comment 1 RHEL Program Management 2012-07-10 08:09:20 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 2 RHEL Program Management 2012-07-10 23:29:38 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 5 Jenny Severance 2012-07-12 20:25:33 UTC
Please add steps to reproduce this issue

Comment 6 Martin Kosek 2012-07-13 06:31:07 UTC
1) (Optional) Add a new permission
# ipa permission-add foo --attrs=cn --type=user --permissions=write

2) Show permission with --all and --rights options to display attributelevelrights attribute:

# ipa permission-show foo --all --rights 
  dn: cn=foo,cn=permissions,cn=pbac,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com
  Permission name: foo
  Permissions: write
  Attributes: cn
  Type: user
  attributelevelrights: {'member': u'rscwo', 'seealso': u'rscwo', 'ipapermissiontype': u'rscwo', 'cn': u'rscwo', 'businesscategory': u'rscwo', 'objectclass': u'rscwo', 'memberof': u'rscwo', 'aci': u'rscwo', 'subtree': u'rscwo', 'o': u'rscwo', 'filter': u'rscwo', 'attrs': u'rscwo', 'owner': u'rscwo', 'group': u'rscwo', 'ou': u'rscwo', 'targetgroup': u'rscwo', 'type': u'rscwo', 'permissions': u'rscwo', 'nsaccountlock': u'rscwo', 'description': u'rscwo'}
  objectclass: groupofnames, ipapermission, top

Make sure that attributelevelrights also contains levelrights for ACI-related attributes, i.e. memberof, subtree, filter, group, ...

3) Run -mod command with these options and check that the ACI-related permissions are there too (won't be before the fix):

# ipa permission-mod foo --attrs=cn,uid --all --rights
-------------------------
Modified permission "foo"
-------------------------
  dn: cn=foo,cn=permissions,cn=pbac,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com
  Permission name: foo
  Permissions: write
  Attributes: cn, uid
  Type: user
  attributelevelrights: {'ipapermissiontype': u'rscwo', 'cn': u'rscwo', 'businesscategory': u'rscwo', 'objectclass': u'rscwo', 'aci': u'rscwo', 'o': u'rscwo', 'member': u'rscwo', 'owner': u'rscwo', 'ou': u'rscwo', 'seealso': u'rscwo', 'nsaccountlock': u'rscwo', 'description': u'rscwo'}
  objectclass: groupofnames, ipapermission, top

Comment 7 Rob Crittenden 2012-08-30 13:20:28 UTC
Fixed upstream.

master: 7e9eb9caad731ef3ecb8e733a4979d375ec5a1b5

ipa-3-0: 0cfca2aec9fbf17ab195ed18d52425e43f150930

Comment 10 Namita Soman 2012-11-27 03:57:17 UTC
Verified using ipa-server-3.0.0-8.el6.x86_64

# ipa permission-add APerm --attrs=cn --type=user --permissions=write
------------------------
Added permission "APerm"
------------------------
  Permission name: APerm
  Permissions: write
  Attributes: cn
  Type: user


# ipa permission-show APerm --all --rights 
  dn: cn=APerm,cn=permissions,cn=pbac,dc=testrelm,dc=com
  Permission name: APerm
  Permissions: write
  Attributes: cn
  Type: user
  attributelevelrights: {'member': u'rscwo', 'seealso': u'rscwo', 'ipapermissiontype': u'rscwo', 'cn': u'rscwo', 'businesscategory': u'rscwo', 'objectclass': u'rscwo', 'memberof': u'rscwo', 'aci': u'rscwo', 'subtree': u'rscwo', 'o': u'rscwo', 'filter': u'rscwo', 'attrs': u'rscwo', 'owner': u'rscwo', 'group': u'rscwo', 'ou': u'rscwo', 'targetgroup': u'rscwo', 'type': u'rscwo', 'permissions': u'rscwo', 'nsaccountlock': u'rscwo', 'description': u'rscwo'}
  objectclass: groupofnames, ipapermission, top


#  ipa permission-mod APerm --attrs=cn,uid --all --rights
---------------------------
Modified permission "APerm"
---------------------------
  dn: cn=APerm,cn=permissions,cn=pbac,dc=testrelm,dc=com
  Permission name: APerm
  Permissions: write
  Attributes: cn, uid
  Type: user
  attributelevelrights: {'member': u'rscwo', 'seealso': u'rscwo', 'ipapermissiontype': u'rscwo', 'cn': u'rscwo', 'businesscategory': u'rscwo', 'objectclass': u'rscwo', 'memberof': u'rscwo', 'aci': u'rscwo', 'subtree': u'rscwo', 'o': u'rscwo', 'filter': u'rscwo', 'attrs': u'rscwo', 'owner': u'rscwo', 'group': u'rscwo', 'ou': u'rscwo', 'targetgroup': u'rscwo', 'type': u'rscwo', 'permissions': u'rscwo', 'nsaccountlock': u'rscwo', 'description': u'rscwo'}
  objectclass: groupofnames, ipapermission, top

Comment 12 errata-xmlrpc 2013-02-21 09:16:16 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.

http://rhn.redhat.com/errata/RHSA-2013-0528.html


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