mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
parent
5b76df4e73
commit
a6d448b8bf
@ -30,12 +30,14 @@ from ipalib.util import (normalize_sshpubkey, validate_sshpubkey,
|
|||||||
|
|
||||||
from ipapython.dn import DN
|
from ipapython.dn import DN
|
||||||
|
|
||||||
|
_dcerpc_bindings_installed = False
|
||||||
|
|
||||||
if api.env.in_server and api.env.context in ['lite', 'server']:
|
if api.env.in_server and api.env.context in ['lite', 'server']:
|
||||||
try:
|
try:
|
||||||
import ipaserver.dcerpc
|
import ipaserver.dcerpc
|
||||||
_dcerpc_bindings_installed = True
|
_dcerpc_bindings_installed = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
_dcerpc_bindings_installed = False
|
pass
|
||||||
|
|
||||||
__doc__ = _("""
|
__doc__ = _("""
|
||||||
ID Views
|
ID Views
|
||||||
|
Loading…
Reference in New Issue
Block a user