diff options
Diffstat (limited to 'ipalib/backend.py')
-rw-r--r-- | ipalib/backend.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/backend.py b/ipalib/backend.py index 1902929aa..7bd9a29f8 100644 --- a/ipalib/backend.py +++ b/ipalib/backend.py @@ -98,7 +98,10 @@ class Executioner(Backend): def create_context(self, ccache=None, client_ip=None): if self.env.in_server: - self.Backend.ldap.connect(ccache) + if self.api.env.use_ldap2: + self.Backend.ldap2.connect(ccache=ccache) + else: + self.Backend.ldap.connect(ccache) else: self.Backend.xmlclient.connect() |