diff options
author | David Kupka <dkupka@redhat.com> | 2015-08-19 08:10:03 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-08-19 14:13:00 +0200 |
commit | db88985c0d4920191b840b5d04d133015293dbe0 (patch) | |
tree | d74b0541a17e3fade50019ff02362eaf6a14b373 /ipaserver/install/ipa_restore.py | |
parent | f160aa3d0a3f8714463c12dac1acc479d1e18a8d (diff) | |
download | freeipa-db88985c0d4920191b840b5d04d133015293dbe0.tar.gz freeipa-db88985c0d4920191b840b5d04d133015293dbe0.tar.xz freeipa-db88985c0d4920191b840b5d04d133015293dbe0.zip |
Backup/resore authentication control configuration
https://fedorahosted.org/freeipa/ticket/5071
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipaserver/install/ipa_restore.py')
-rw-r--r-- | ipaserver/install/ipa_restore.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py index b69ea9000..0620d24df 100644 --- a/ipaserver/install/ipa_restore.py +++ b/ipaserver/install/ipa_restore.py @@ -386,6 +386,10 @@ class Restore(admintool.AdminTool): self.log.info('Starting Directory Server') dirsrv.start(capture_output=False) else: + # restore access controll configuration + auth_backup_path = os.path.join(paths.VAR_LIB_IPA, 'auth_backup') + if os.path.exists(auth_backup_path): + tasks.restore_auth_configuration(auth_backup_path) # explicitly enable then disable the pki tomcatd service to # re-register its instance. FIXME, this is really wierd. services.knownservices.pki_tomcatd.enable() |