summaryrefslogtreecommitdiffstats
path: root/ipalib/backend.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-27 16:28:50 -0700
committerRob Crittenden <rcritten@redhat.com>2009-02-03 15:29:03 -0500
commitdb0168f7afdac55eb7e0488cdc05e7a77a25672d (patch)
tree5413f862a79ae8c8589f1bb1d00feb565309760d /ipalib/backend.py
parent9efda29d60ae83d17bce793e0a23e3ec43c67f80 (diff)
downloadfreeipa-db0168f7afdac55eb7e0488cdc05e7a77a25672d.tar.gz
freeipa-db0168f7afdac55eb7e0488cdc05e7a77a25672d.tar.xz
freeipa-db0168f7afdac55eb7e0488cdc05e7a77a25672d.zip
Started reworking CLI class into cli plugin
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: