summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-server-install
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2013-11-04 17:15:23 +0200
committerMartin Kosek <mkosek@redhat.com>2013-11-04 16:37:24 +0100
commit989493979da3ef1136a9b346cace5689ef22eed8 (patch)
tree1647beda86be454868696028cb070ab65c28f083 /install/tools/ipa-server-install
parent1f6880c59059496f5002111cd0b5f16cc51961db (diff)
downloadfreeipa-989493979da3ef1136a9b346cace5689ef22eed8.tar.gz
freeipa-989493979da3ef1136a9b346cace5689ef22eed8.tar.xz
freeipa-989493979da3ef1136a9b346cace5689ef22eed8.zip
Guard import of adtrustinstance for case without trusts
https://fedorahosted.org/freeipa/ticket/4011
Diffstat (limited to 'install/tools/ipa-server-install')
-rwxr-xr-xinstall/tools/ipa-server-install10
1 files changed, 8 insertions, 2 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index b3dcf6d9..458ebba5 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -40,7 +40,12 @@ import pwd
import textwrap
from optparse import OptionGroup, OptionValueError
-from ipaserver.install import adtrustinstance
+try:
+ from ipaserver.install import adtrustinstance
+ _server_trust_ad_installed = True
+except ImportError:
+ _server_trust_ad_installed = False
+
from ipaserver.install import dsinstance
from ipaserver.install import krbinstance
from ipaserver.install import bindinstance
@@ -493,7 +498,8 @@ def uninstall():
httpinstance.HTTPInstance(fstore).uninstall()
krbinstance.KrbInstance(fstore).uninstall()
dsinstance.DsInstance(fstore=fstore).uninstall()
- adtrustinstance.ADTRUSTInstance(fstore).uninstall()
+ if _server_trust_ad_installed:
+ adtrustinstance.ADTRUSTInstance(fstore).uninstall()
memcacheinstance.MemcacheInstance().uninstall()
otpdinstance.OtpdInstance().uninstall()
ipaservices.restore_network_configuration(fstore, sstore)