mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Validate the Directory Manager password before starting restore
The password was only indirectly validated when trying to disable replication agreements for the restoration. https://pagure.io/freeipa/issue/7136 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
6659392a0a
commit
0653d2a17e
@ -670,7 +670,7 @@ class Restore(admintool.AdminTool):
|
|||||||
'''
|
'''
|
||||||
Restore paths.IPA_DEFAULT_CONF to temporary directory.
|
Restore paths.IPA_DEFAULT_CONF to temporary directory.
|
||||||
|
|
||||||
Primary purpose of this method is to get cofiguration for api
|
Primary purpose of this method is to get configuration for api
|
||||||
finalization when restoring ipa after uninstall.
|
finalization when restoring ipa after uninstall.
|
||||||
'''
|
'''
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
@ -884,3 +884,10 @@ class Restore(admintool.AdminTool):
|
|||||||
|
|
||||||
self.instances = [installutils.realm_to_serverid(api.env.realm)]
|
self.instances = [installutils.realm_to_serverid(api.env.realm)]
|
||||||
self.backends = ['userRoot', 'ipaca']
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user