mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Always use new LDAP backend when creating context.
This commit is contained in:
committed by
Rob Crittenden
parent
4b993782e6
commit
3ce00484f4
@@ -98,10 +98,7 @@ class Executioner(Backend):
|
||||
|
||||
def create_context(self, ccache=None, client_ip=None):
|
||||
if self.env.in_server:
|
||||
if self.api.env.use_ldap2:
|
||||
self.Backend.ldap2.connect(ccache=ccache)
|
||||
else:
|
||||
self.Backend.ldap.connect(ccache)
|
||||
self.Backend.ldap2.connect(ccache=ccache)
|
||||
else:
|
||||
self.Backend.xmlclient.connect()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user