summaryrefslogtreecommitdiffstats
path: root/ipalib/backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/backend.py')
-rw-r--r--ipalib/backend.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py
index f2741abe..d484c22e 100644
--- a/ipalib/backend.py
+++ b/ipalib/backend.py
@@ -95,6 +95,13 @@ class Connectible(Backend):
class Executioner(Backend):
+
+ def create_context(self, ccache=None, client_ip=None):
+ if self.env.in_server:
+ self.Backend.ldap.connect(ccache=ccache)
+ else:
+ self.Backend.xmlclient.connect(ccache=ccache)
+
def execute(self, name, *args, **options):
error = None
try: