Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 785251 - ipa permisison-find --name brings back all permissions
ipa permisison-find --name brings back all permissions
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa (Show other bugs)
6.2
Unspecified Unspecified
high Severity unspecified
: rc
: ---
Assigned To: Rob Crittenden
Namita Soman
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-27 14:17 EST by Namita Soman
Modified: 2013-08-19 10:14 EDT (History)
2 users (show)

See Also:
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 04:09:38 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 03:22:21 EST

  None (edit)
Description Namita Soman 2012-01-27 14:17:12 EST
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 03:05:00 EST
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2320
Comment 3 Namita Soman 2012-02-09 11:05:07 EST
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 04:08:30 EDT
Fixed upstream:
master: https://fedorahosted.org/freeipa/changeset/95bb8d0f45c3061035633c7b9c3b1609b11a158d
Comment 7 Namita Soman 2012-11-26 12:21:47 EST
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 04:09:38 EST
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.