During KRA uninstallation in unattended mode (ipa-kra-install --uninstall -U), the process exits immediately with the following error message:
ipa-kra-install --uninstall -U
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}}}):
ipaserver/install/ipa_kra_install.py
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:
Metadata Update from @mbabinsk: - Issue assigned to mbabinsk - Issue set to the milestone: FreeIPA 4.2
Login to comment on this ticket.