#5433 Better error message needed for invalid ca-signing-algo option
Closed: Fixed None Opened 3 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1278426

Description of problem:
I think there should be a better error message when invalid or empty option
used with --ca-signinig-algorithm option.

[root@dhcp207-229 ~]# ipa-server-install --setup-dns --forwarder=10.65.201.89
-r TESTRELM.TEST -a xxxxxxxx -p xxxxxxxx --external-ca -U
--ca-signing-algorithm=invalid
Usage: ipa-server-install [options]

ipa-server-install: error: option --ca-signing-algorithm: invalid choice
'invalid' (choose from s, e, t, (, [, ', S, H, A, 2, 5, 6, w, i, t, h, R, S, A,
', ,,  , ', S, H, A, 1, w, i, t, h, R, S, A, ', ,,  , ', S, H, A, 5, 1, 2, w,
i, t, h, R, S, A, ', ], ))
[root@dhcp207-229 ~]#

[root@dhcp207-229 ~]# ipa-server-install --setup-dns --forwarder=10.65.201.89
-r TESTRELM.TEST -a xxxxxxxx -p xxxxxxxx --external-ca -U
--ca-signing-algorithm=
Usage: ipa-server-install [options]

ipa-server-install: error: option --ca-signing-algorithm: invalid choice ''
(choose from s, e, t, (, [, ', S, H, A, 2, 5, 6, w, i, t, h, R, S, A, ', ,,  ,
', S, H, A, 1, w, i, t, h, R, S, A, ', ,,  , ', S, H, A, 5, 1, 2, w, i, t, h,
R, S, A, ', ], ))
[root@dhcp207-229 ~]#

Version-Release number of selected component (if applicable):
[root@dhcp207-229 ~]# rpm -q ipa-server
ipa-server-4.2.0-15.el7.x86_64
[root@dhcp207-229 ~]#

How reproducible:
Always

Steps to Reproduce:
1. ipa-server-install with invalid ca-signing-algo option.
2.
3.

Actual results:

Usage: ipa-server-install [options]

ipa-server-install: error: option --ca-signing-algorithm: invalid choice ''
(choose from s, e, t, (, [, ', S, H, A, 2, 5, 6, w, i, t, h, R, S, A, ', ,,  ,
', S, H, A, 1, w, i, t, h, R, S, A, ', ,,  , ', S, H, A, 5, 1, 2, w, i, t, h,
R, S, A, ', ], ))


Expected results:
..
Usage: ipa-server-install [options]

ipa-server-install: error: option --ca-signing-algorithm: invalid choice
'invalid' (choose from SHA256withRSA, SHA1withRSA, SHA512withRSA)

master:

  • b6a2a1c fix error reporting when installer option is supplied with invalid choice

ipa-4-2:

  • dc0f2d1 fix error reporting when installer option is supplied with invalid choice

Metadata Update from @pvoborni:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.2.4

2 years ago

Login to comment on this ticket.

Metadata