diff options
author | Jan Cholasta <jcholast@redhat.com> | 2015-09-21 10:09:50 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-22 16:34:51 +0200 |
commit | 0de860318332114ca739a8dd45902f7cc9a3c722 (patch) | |
tree | 263f68af3d14e3de65a3469bfb8240ecf71a1555 /ipaserver/install/ipa_restore.py | |
parent | bdccebbcdb9eb7da476762743121c1e73f95fa10 (diff) | |
download | freeipa-0de860318332114ca739a8dd45902f7cc9a3c722.tar.gz freeipa-0de860318332114ca739a8dd45902f7cc9a3c722.tar.xz freeipa-0de860318332114ca739a8dd45902f7cc9a3c722.zip |
install: create kdcproxy user during server install
This change makes kdcproxy user creation consistent with DS and CA user
creation. Before, the user was created in the spec file, in %pre scriptlet
of freeipa-server.
https://fedorahosted.org/freeipa/ticket/5314
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, 3 insertions, 1 deletions
diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py index b7af88d99..6f24a4818 100644 --- a/ipaserver/install/ipa_restore.py +++ b/ipaserver/install/ipa_restore.py @@ -370,6 +370,7 @@ class Restore(admintool.AdminTool): self.restore_selinux_booleans() + http = httpinstance.HTTPInstance() # We do either a full file restore or we restore data. if restore_type == 'FULL': @@ -381,6 +382,8 @@ class Restore(admintool.AdminTool): self.cert_restore() if 'CA' in self.backup_services: self.__create_dogtag_log_dirs() + if http.is_kdcproxy_configured(): + httpinstance.create_kdcproxy_user() # Always restore the data from ldif # If we are restoring PKI-IPA then we need to restore the @@ -409,7 +412,6 @@ class Restore(admintool.AdminTool): self.log.info('Restarting SSSD') sssd = services.service('sssd') sssd.restart() - http = httpinstance.HTTPInstance() http.remove_httpd_ccache() finally: try: |