Bug 1271934

Summary: ipa cert-request with missing fqdn in principal deserves better error message
Product: Red Hat Enterprise Linux 7 Reporter: Abhijeet Kasurde <akasurde>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED WONTFIX QA Contact: Namita Soman <nsoman>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.0CC: pasik, pvoborni, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-10 21:57:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Abhijeet Kasurde 2015-10-15 06:27:59 UTC
Description of problem:
If ipa cert-request is given with blank FQDN in principal gives error 

ipa: ERROR: 'fqdn' is required

Rather than this message, it deserves better message like 

ipa: ERROR: The Fully Qualified Domain name for principal is required


Version-Release number of selected component (if applicable):
ipa-server-4.2.0-13.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. openssl req -nodes -newkey rsa:2048 -keyout example.key -out example.csr -subj "/C=US/ST=CA/L=Mountain View/O=IPA/OU=QA/CN=ipaserver1.testrelm.test"
2. ipa cert-request example.csr --add --principal=service/ --request-type=invalid

Actual results:
Error message like 
ipa: ERROR: 'fqdn' is required

Expected results:
Error message like 
ipa: ERROR: The Fully Qualified Domain name for principal is required

Additional info:

Comment 2 Petr Vobornik 2015-10-19 18:39:48 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5382

Comment 3 Petr Vobornik 2017-04-06 16:29:10 UTC
IdM team doesn't have capacity to fix this bug for RHEL 7.4. Moving to next RHEL version. Fixing the bug there will depend on capacity of FreeIPA upstream. Without sufficient  justification there is a chance that it will be moved again later.

Comment 6 Rob Crittenden 2019-01-10 21:57:04 UTC
Thank you taking your time and submitting this request for Red Hat Enterprise Linux. The request was cloned to the upstream tracker a long time ago (see link to the upstream ticket above), but it was unfortunately not given priority either in the upstream project, nor in Red Hat Enterprise Linux.

Given that this request is not planned for a close release, it is highly unlikely it will be fixed in this major version of Red Hat Enterprise Linux. We are therefore closing the request as WONTFIX.

To request that Red Hat reconsiders the decision, please reopen the Bugzilla with the help of Red Hat Customer Service and provide additional business and/or technical details about it's importance to you. Please note that you can still track this request or even offer help in the referred upstream Pagure ticket to expedite the solution.