mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Provide ldap_uri in Custodia uninstaller
Without ldap_uri, IPAKEMKeys parses /etc/ipa/default.conf. During uninstallation, the file may no longer contain ldap_uri. This workaround is required for test case test_replica_promotion.py::TestReplicaPromotionLevel0::test_promotion_disabled Fixes: https://pagure.io/freeipa/issue/7474 Co-authored-by: Felipe Barreto <fbarreto@redhat.com> Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
@@ -1108,7 +1108,9 @@ def uninstall(installer):
|
||||
dsinstance.DsInstance(fstore=fstore).uninstall()
|
||||
if _server_trust_ad_installed:
|
||||
adtrustinstance.ADTRUSTInstance(fstore).uninstall()
|
||||
custodiainstance.CustodiaInstance().uninstall()
|
||||
# ldap_uri isn't used, but IPAKEMKeys parses /etc/ipa/default.conf
|
||||
# otherwise, see https://pagure.io/freeipa/issue/7474 .
|
||||
custodiainstance.CustodiaInstance(ldap_uri='ldapi://invalid').uninstall()
|
||||
otpdinstance.OtpdInstance().uninstall()
|
||||
tasks.restore_hostname(fstore, sstore)
|
||||
fstore.restore_all_files()
|
||||
|
||||
Reference in New Issue
Block a user