From 683d096a4738276b474fd1eb621deef296def134 Mon Sep 17 00:00:00 2001
From: Christian Heimes <cheimes@redhat.com>
Date: Mon, 7 May 2018 11:31:15 +0200
Subject: [PATCH] Revert "Validate the Directory Manager password"

This reverts commit 0653d2a17e67a32c9adcca8145afa231f228b855. The commit
broke full ipa-restore.

See: https://pagure.io/freeipa/issue/7469
See: https://pagure.io/freeipa/issue/7535
Signed-off-by: Christian Heimes <cheimes@redhat.com>
---
 ipaserver/install/ipa_restore.py | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py
index 36a48ffa27..5d703865c4 100644
--- a/ipaserver/install/ipa_restore.py
+++ b/ipaserver/install/ipa_restore.py
@@ -668,7 +668,7 @@ def restore_default_conf(self):
         '''
         Restore paths.IPA_DEFAULT_CONF to temporary directory.
 
-        Primary purpose of this method is to get configuration for api
+        Primary purpose of this method is to get cofiguration for api
         finalization when restoring ipa after uninstall.
         '''
         cwd = os.getcwd()
@@ -882,10 +882,3 @@ def init_api(self, **overrides):
 
         self.instances = [installutils.realm_to_serverid(api.env.realm)]
         self.backends = ['userRoot', 'ipaca']
-
-        try:
-            ReplicationManager(api.env.realm, api.env.host,
-                               self.dirman_password)
-        except errors.ACIError:
-            logger.error("Incorrect Directory Manager password provided")
-            raise
