Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 785251

Summary: ipa permisison-find --name brings back all permissions
Product: Red Hat Enterprise Linux 6 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.2CC: jgalipea, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-3.0.0-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:09:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Namita Soman 2012-01-27 19:17:12 UTC
Description of problem:
Use --name to bring back the permission, and all permissions are retrieved.

# ipa permission-find --name=ManageUser1
brings back all permissions.

# ipa permission-find ManageUser1
--------------------
1 permission matched
--------------------
  Permission name: ManageUser1
  Permissions: write
  Attributes: carlicense, description
  Type: user
----------------------------
Number of entries returned 1
----------------------------

Version-Release number of selected component (if applicable):
ipa-server-2.2.0-101.20120123T0157zgit64cf8a4.el6.x86_64


How reproducible:
always

Steps to Reproduce:
1. add a permission
2. find it using
ipa permission-find --name=<name>

  
Actual results:
All permissions are listed

Expected results:
Just that permission is listed

Additional info:

Comment 2 Martin Kosek 2012-01-30 08:05:00 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2320

Comment 3 Namita Soman 2012-02-09 16:05:07 UTC
Using ipa-server-2.2.0-101.20120209T0933zgit52cf9d9.el6.x86_64
I see the error below:
# ipa permission-find --name ManageUser1 
ipa: ERROR: overlapping arguments and options: ['cn']

And ManageUser1 is available:
# ipa permission-show ManageUser1 
  Permission name: ManageUser1
  Permissions: write
  Attributes: carlicense, description
  Type: user

Comment 4 Martin Kosek 2012-05-14 08:08:30 UTC
Fixed upstream:
master: https://fedorahosted.org/freeipa/changeset/95bb8d0f45c3061035633c7b9c3b1609b11a158d

Comment 7 Namita Soman 2012-11-26 17:21:47 UTC
Verified using ipa-server-3.0.0-8.el6.x86_64

:: [11:04:19] ::  Executing: ipa permission-find --name=ManageUser1 --all
:: [11:04:20] ::  Searching for permissions: ManageUser1
Permission name: ManageUser1
:: [11:04:20] ::  Permission ManageUser1 found as expected.
:: [   PASS   ] :: Verify permissions are found for --name=ManageUser1

----

:: [   PASS   ] :: Verify error message for invalid name
:: [   PASS   ] :: File '/tmp/tmp.2fm5O9W9H8/ipapermission_invalidname.log' should contain 'Number of entries returned 0'
---------------------
0 permissions matched
---------------------
----------------------------
Number of entries returned 0
----------------------------

Comment 9 errata-xmlrpc 2013-02-21 09:09:38 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