From 9ecbd845d47231c742e46f04c98856ff672fdd81 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Tue, 21 Apr 2009 15:17:07 +0200 Subject: Add conditional (env.use_ldap2 is True) modifications required by new LDAP backend. --- ipalib/backend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipalib/backend.py') diff --git a/ipalib/backend.py b/ipalib/backend.py index 1902929a..7bd9a29f 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() -- cgit