summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-05-27 14:31:13 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-01 12:57:22 +0200
commita6d448b8bf70ef29aa4a2c16afb9aee068a95ae4 (patch)
tree3ffeeefbee6c1abb68d3423a10e0eeb9f6065c9c /ipalib
parent5b76df4e7335c723f3fb14ef809e4d71e53509c9 (diff)
downloadfreeipa-a6d448b8bf70ef29aa4a2c16afb9aee068a95ae4.tar.gz
freeipa-a6d448b8bf70ef29aa4a2c16afb9aee068a95ae4.tar.xz
freeipa-a6d448b8bf70ef29aa4a2c16afb9aee068a95ae4.zip
idviews: Set dcerpc detection flag properly
The availability of dcerpc bindings is being checked on the client side as well, hence we need to define it properly. https://fedorahosted.org/freeipa/ticket/5025 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/idviews.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/plugins/idviews.py b/ipalib/plugins/idviews.py
index 57f0cce15..a7b1e0a78 100644
--- a/ipalib/plugins/idviews.py
+++ b/ipalib/plugins/idviews.py
@@ -30,12 +30,14 @@ from ipalib.util import (normalize_sshpubkey, validate_sshpubkey,
from ipapython.dn import DN
+_dcerpc_bindings_installed = False
+
if api.env.in_server and api.env.context in ['lite', 'server']:
try:
import ipaserver.dcerpc
_dcerpc_bindings_installed = True
except ImportError:
- _dcerpc_bindings_installed = False
+ pass
__doc__ = _("""
ID Views