Bug 782851

Summary: ipa permission-add prompts for mutually exclusive attributes
Product: Red Hat Enterprise Linux 7 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Martin Kosek <mkosek>
Status: CLOSED DEFERRED QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jgalipea, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-16 12:45:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Namita Soman 2012-01-18 16:52:54 UTC
Description of problem:
When adding a permission, only one target can be used. When prompting, all get prompted, even though one of them is already entered. 

For example, below, type is entered to be user, then there should be no further prompts for filter, subtree and targetgroup.

# ipa permission-add
Permission name: ManageUser3
Permissions: read
[Attributes]: carlicense
[Type]: user
[Member of group]: 
[Filter]: 
[Subtree]: cn=users,cn=accounts,dc=testrelm
[Target group]: 
ipa: ERROR: invalid 'target': type, filter, subtree and targetgroup are mutually exclusive


Version-Release number of selected component (if applicable):
freeipa-server-2.1.4-4.fc16.x86_64

How reproducible:
always

Steps to Reproduce:
1. run ipa permission-add as indicated above

  
Actual results:
After entering type to be user, there are still prompts for filter, subtree and targetgroup. If any values are entered for those, an error is thrown.

Expected results:
After type is entered to be user, then there should be no further prompts for filter, subtree and targetgroup.


Additional info:

Comment 2 Martin Kosek 2012-01-19 09:57:35 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2281

Comment 6 Martin Kosek 2015-01-16 12:45:43 UTC
Thank you taking your time and submitting this request for Red Hat Enterprise Linux. Unfortunately, this bug was not given a priority and was deferred both in the upstream project and in Red Hat Enterprise Linux.

Given that we are unable to fulfill this request in near Red Hat Enterprise Linux releases, I am closing the Bugzilla as DEFERRED. To request that Red Hat re-considers the request, please re-open the Bugzilla via appropriate support channels and provide additional business and/or technical details about its importance to you.