#6353 During one step replica install the command accepts both OTP and Admin password simultaneously
Closed: fixed Opened by pvoborni.

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

Please note that this Bug is private and may not be accessible as it contains confidential Red Hat customer information.

Description of problem:
During one step replica install the command accepts both OTP and Admin password
simultaneously.
The replica promotion was still successful in the case.
# ipa-replica-install --server=test.example.com
--domain=example.com --realm=EXAMPLE.COM -p 4ughf1XDd.ui -w
Secret123 -P admin
The command should alert if multiple password has been provided. Also OTP
option should not be provided since it is fail due to required permission issue
as mentioned in bugzilla 1376019.
Version-Release number of selected component (if applicable):
ipa-server-4.4.0-11.el7.x86_64
How reproducible:
Always
Actual results:
ipa-replica-install does not prompt when different passwords are provided and
installation succeeds.
Expected results:
ipa-replica-install should prompt when different passwords are provided.
Additional info:

Metadata Update from @pvoborni:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2585
- Issue close_status updated to: None

Metadata Update from @frenaud:
- Issue assigned to frenaud (was: someone)

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.6.5 (was: FreeIPA 4.5 backlog)

master:

  • 23306a28c9181065ab3f2828ab2df56c152e2c62 ipa-replica-install: password and admin-password options mutually exclusive
  • 26e35dca413ecfa68df0b6115bed17ea4421fe31 ipatests: add test for ipa-replica-install options

ipa-4-7:

  • fd3f5153beb3221be077f277b07d886b6ca53b10 ipa-replica-install: password and admin-password options mutually exclusive
  • 2b155f98e7b9ced739233242ff53e2d4b4c7f063 ipatests: add test for ipa-replica-install options

ipa-4-6:

  • 2aed47c7dabaf41d2d8208f0256c4916b922ac7d ipa-replica-install: password and admin-password options mutually exclusive
  • d53faf84c285108d4d2440b9a8e4357c49092e2b ipatests: add test for ipa-replica-install options

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata