#5028 KRA uninstall in unattended mode crashes on missing directory manager password
Closed: Fixed None Opened 8 years ago by mbabinsk.

During KRA uninstallation in unattended mode (ipa-kra-install --uninstall -U), the process exits immediately with the following error message:

ipa-kra-install: error: Directory Manager password must be specified using -p in unattended mode

The problem probably lies in the following check for directory manager password in ipaserver/install/ipa_kra_install.py lines 77-81 (method {{{KRAInstall.validate_options}}}):

if self.options.unattended and self.options.password is None:
            self.option_parser.error(
                "Directory Manager password must be specified using -p"
                " in unattended mode"
            )

This snippet forces the user to enter directory manager password during uninstall where it is not used at all.

Steps to reproduce:

1.) Install IPA server/replica and KRA

2.) Try to uninstall KRA in unattended mode:
{{{ipa-kra-install --uninstall -U}}}

Expected result: KRA is uninstalled from the system without user intervention

Actual result: Uninstallation fails with the above error message


master:

  • 9d8ac39 do not check for directory manager password during KRA uninstall

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

7 years ago

Login to comment on this ticket.

Metadata