mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
plugable: Pass API to plugins on initialization rather than using set_api
https://fedorahosted.org/freeipa/ticket/3090 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
@@ -945,9 +945,7 @@ class user_status(LDAPQuery):
|
||||
if host == api.env.host:
|
||||
other_ldap = self.obj.backend
|
||||
else:
|
||||
other_ldap = ldap2(shared_instance=False,
|
||||
ldap_uri='ldap://%s' % host,
|
||||
base_dn=self.api.env.basedn)
|
||||
other_ldap = ldap2(self.api, ldap_uri='ldap://%s' % host)
|
||||
try:
|
||||
other_ldap.connect(ccache=os.environ['KRB5CCNAME'])
|
||||
except Exception, e:
|
||||
|
||||
Reference in New Issue
Block a user