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 958133 - Unable to add filter to permission
Summary: Unable to add filter to permission
Keywords:
Status: CLOSED DUPLICATE of bug 854335
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-30 13:09 UTC by Lukas Bezdicka
Modified: 2013-05-02 09:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-02 09:54:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukas Bezdicka 2013-04-30 13:09:33 UTC
Description of problem:
Default set of permission comes with filter for admins. I can't create simillar group as that one from UI or api.

Version-Release number of selected component (if applicable):
ipa-server-3.0.0-25.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. Open IPA Server > RBAC > Permissions > Modify Group membership
2. try to change back away from permission
3. you are asked to save changes
  
Actual results:
Modify Group membership has ACI: 
  aci: (targetattr = "member")(targetfilter = "(!(cn=admins))")(target = "ldap:///cn=*,cn=groups,cn=accounts

If I try to reproduce such setup creating different permission I get:
ipa: ERROR: invalid 'target': type, filter, subtree and targetgroup are mutually exclusive
I can only do ACI:
aci: (targetattr = "member")(target = "ldap:///cn=deli,cn=groups,cn=accounts

Expected results:
* Ability to create permissions with filters on admins and so on such as the default permission "Modify Group membership".
* No UI/api issues with default permissions, they should be valid

Additional info:

Comment 1 Lukas Bezdicka 2013-04-30 13:25:04 UTC
better usecase/reproducer:
[root@kokotina03:~] ipa permission-find Change
--------------------
1 permission matched
--------------------
  Permission name: Change a user password
  Permissions: write
  Attributes: userpassword, krbprincipalkey, sambalmpassword, sambantpassword, passwordhistory
  Type: user
  Filter: (!(memberOf=cn=admins,cn=groups,cn=accounts,dc=kokot,dc=com))
  Granted to Privilege: User Administrators, Modify Users and Reset passwords
----------------------------
Number of entries returned 1

[root@kokotina03:~] ipa permission-add gdc-change-user-password  --permissions="write" --attrs="userpassword, krbprincipalkey, sambalmpassword, sambantpassword, passwordhistory" --type='user' --filter='(!(|(memberOf=cn=admins,cn=groups,cn=accounts,dc=kokot,dc=com)(memberOf=cn=ops,cn=groups,cn=accounts,dc=kokot,dc=com)))'
ipa: ERROR: invalid 'target': type, filter, subtree and targetgroup are mutually exclusive

Comment 2 Rob Crittenden 2013-04-30 14:29:37 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3597

Comment 3 Martin Kosek 2013-05-02 09:47:54 UTC
Closing upstream ticket 3597. It is a duplicate to:
https://fedorahosted.org/freeipa/ticket/3028

Comment 4 Martin Kosek 2013-05-02 09:54:10 UTC
I just noticed that this upstream ticket has its own Bugzilla - closing this one as duplicate.

*** This bug has been marked as a duplicate of bug 854335 ***


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