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:
@@ -107,7 +107,7 @@ def main():
|
||||
conn = None
|
||||
try:
|
||||
try:
|
||||
conn = ldap2(shared_instance=False, base_dn='')
|
||||
conn = ldap2(api)
|
||||
conn.connect(
|
||||
bind_dn=DN(('cn', 'directory manager')), bind_pw=dirman_password
|
||||
)
|
||||
|
||||
@@ -120,7 +120,7 @@ def main():
|
||||
conn = None
|
||||
try:
|
||||
try:
|
||||
conn = ldap2(shared_instance=False, base_dn='')
|
||||
conn = ldap2(api)
|
||||
conn.connect(
|
||||
bind_dn=DN(('cn', 'directory manager')), bind_pw=dirman_password
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user