Bug 1582113

Summary: ipa-client-install argument check
Product: [Fedora] Fedora Reporter: Jacquelin Charbonnel <jacquelin.charbonnel>
Component: freeipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 30CC: abokovoy, frenaud, ipa-maint, jcholast, jhrozek, pvoborni, rcritten, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-12 19:22:38 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 Jacquelin Charbonnel 2018-05-24 09:09:20 UTC
Argument check too strict for --domain and --realm :

# ipa-client-install --unattended --no-nisdomain --no-ntp --no-dns-sshfp --domain=math --realm=MATH -p xxx -w xxx --hostname=pc-img2.math

says :

ipa-client-install: error: option --domain: single label domains are not supported

# ipa-client-install --unattended --no-nisdomain --no-ntp --no-dns-sshfp --domain=math.univ-angers.fr --realm=MATH -p xxx -w xxx --hostname=pc-img2.math

says :

ipa-client-install: error: option --realm: single label realms are not supported

but :

# ipa-client-install --unattended --no-nisdomain --no-ntp --no-dns-sshfp -p xxx -w xxx --hostname=pc-img2.math

says :

Discovery was successful!
Client hostname: pc-img2.math
Realm: MATH
DNS Domain: math
IPA Server: netsrv.math
BaseDN: dc=math

and runs successfully.

Comment 1 Alexander Bokovoy 2018-05-24 09:10:48 UTC
We do not support single label realms. This is not going to change.

Comment 2 Florence Blanc-Renaud 2018-05-30 07:22:15 UTC
I think we should rather add a check when using autodiscovery, and make sure that the discovered domain/realm is not single-label.

Comment 3 Florence Blanc-Renaud 2018-06-25 14:59:29 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7598

Comment 4 Rob Crittenden 2019-04-10 18:56:05 UTC
Fixed upstream
master:
https://pagure.io/freeipa/c/f2826da24bb4ddcc55a3c8d6739e918b0089b246

Comment 5 Florence Blanc-Renaud 2019-04-11 11:12:26 UTC
Fixed upstream
ipa-4-6:
https://pagure.io/freeipa/c/39d2ae9bb341b709ce048ae1fae461ab45800581

Comment 6 Florence Blanc-Renaud 2019-04-11 11:43:44 UTC
Fixed upstream
ipa-4-7:
https://pagure.io/freeipa/c/4bc8bc284cfa2cdca44c8d53e74edb2f6be761ea

Comment 7 Ben Cotton 2019-05-02 19:41:34 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Rob Crittenden 2019-11-12 19:22:38 UTC
Fixed in 4.8.0-1