Red Hat Bugzilla – Bug 785251
ipa permisison-find --name brings back all permissions
Last modified: 2013-08-19 10:14:39 EDT
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:
Upstream ticket: https://fedorahosted.org/freeipa/ticket/2320
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
Fixed upstream: master: https://fedorahosted.org/freeipa/changeset/95bb8d0f45c3061035633c7b9c3b1609b11a158d
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 ----------------------------
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