RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1283890 - installer options are not validated at the beginning of installation
Summary: installer options are not validated at the beginning of installation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.2
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On: 1278330
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-20 08:02 UTC by Jan Kurik
Modified: 2015-12-08 10:37 UTC (History)
10 users (show)

Fixed In Version: ipa-4.2.0-15.el7_2.2
Doc Type: Bug Fix
Doc Text:
Due to a bug, ipa-server-install and ipa-replica-install did not validate their options. A patch has been applied to add the code that calls the validators in installers. Now, ipa-server-install and ipa-replica-install validate their options as expected.
Clone Of: 1278330
Environment:
Last Closed: 2015-12-08 10:37:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2562 0 normal SHIPPED_LIVE ipa bug fix update 2015-12-08 15:35:22 UTC

Description Jan Kurik 2015-11-20 08:02:40 UTC
This bug has been copied from bug #1278330 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 6 Nikhil Dehadrai 2015-11-25 15:47:07 UTC
IPA and REPLICA server details:
-------------------------------
ipa-server-4.2.0-15.el7_2.3.x86_64


Tested the bug with following observations:
-------------------------------------------
1. Verified that while installing IPA server or REPLICA, proper validation is done at the beginning and installation will fail with proper message.
2. Please see the following observations for validations tests performed on IPA and REPLICA:

IPA:
====
[root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19  -r TESTRELM.TEST -p password -a password --zonemgr=Têko -U
Usage: ipa-server-install [options]
ipa-server-install: error: option --zonemgr: domain name 'Têko.redhat.com' should be normalized to: tãako.redhat.com

[root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19  -r TESTRELM.TEST -p password -a password --subject CN=Test -U
Usage: ipa-server-install [options]
ipa-server-install: error: option --subject: invalid subject base format: invalid attribute: "CN"

[root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19  -r TESTRELM.TEST -p password -a password --subject
Usage: ipa-server-install [options]
ipa-server-install: error: --subject option requires an argument

[root@dell-pe840-02 ipa]# ipa-server-install --setup-dns --forwarder=10.11.5.19  -r TESTRELM.TEST -p password -a password --subject=NOSUBJECT
Usage: ipa-server-install [options]
ipa-server-install: error: option --subject: invalid subject base format: malformed RDN string = "NOSUBJECT"
[root@dell-pe840-02 ipa]# 

[root@dell-pe840-02 ipa]# ipa-server-install --subject CN=Test -U
Usage: ipa-server-install [options]
ipa-server-install: error: option --subject: invalid subject base format: invalid attribute: "CN"

[root@dell-pe840-02 ipa]# ipa-server-install --ip-address=a.b.3.4
Usage: ipa-server-install [options]
ipa-server-install: error: option --ip-address: invalid IP address a.b.3.4: failed to detect a valid IP address from 'a.b.3.4'

[root@dell-pe840-02 ipa]# ipa-server-install -xyz
Usage: ipa-server-install [options]
ipa-server-install: error: no such option: -x

[root@dell-pe840-02 ipa]# addr=`ifconfig | head -2 | tail -1 | tr -s " " | cut -d" " -f3`

[root@dell-pe840-02 ipa]# ipa-server-install --ip-address $addr -r testrelm.test -p 'Secret123' -a 'Secret123' --forwarder 10.65.b.c -U --setup-dns
Usage: ipa-server-install [options]
ipa-server-install: error: option --forwarder: invalid IP address 10.65.b.c: failed to detect a valid IP address from '10.65.b.c'
[root@dell-pe840-02 ipa]# 


REPLICA:
========
[root@hp-dl380pgen8-02-vm-3 yum.repos.d]# ipa-replica-install --forwarder=a.c.b.d
Usage: ipa-replica-install [options] REPLICA_FILE

ipa-replica-install: error: option --forwarder: invalid IP address a.c.b.d: failed to detect a valid IP address from 'a.c.b.d'

[root@hp-dl380pgen8-02-vm-3 yum.repos.d]# ipa-replica-install --reverse-zone=$#%$#$%#$5
Usage: ipa-replica-install [options] REPLICA_FILE
ipa-replica-install: error: you must provide a file generated by ipa-replica-prepare

[root@hp-dl380pgen8-02-vm-3 yum.repos.d]# ipa-replica-install --reverse-zone=
Usage: ipa-replica-install [options] REPLICA_FILE
ipa-replica-install: error: you must provide a file generated by ipa-replica-prepare
[root@hp-dl380pgen8-02-vm-3 yum.repos.d]#

Thus based on above observations, marking the status of the bug to "VERIFIED".

Comment 8 errata-xmlrpc 2015-12-08 10:37:21 UTC
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.

https://rhn.redhat.com/errata/RHBA-2015-2562.html


Note You need to log in before you can comment on or make changes to this bug.