mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipaldap: merge external_bind into LDAPClient
* Rename do_external_bind to external_bind
* Remove user_name argument in external_bind() and always set it
to effective user name
https://fedorahosted.org/freeipa/ticket/6461
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
de58a5c605
commit
60e38ecc7f
@@ -1740,7 +1740,7 @@ class CAReplicationManager(ReplicationManager):
|
||||
def __init__(self, realm, hostname):
|
||||
# Always connect to self over ldapi
|
||||
conn = ipaldap.IPAdmin(hostname, ldapi=True, realm=realm)
|
||||
conn.do_external_bind('root')
|
||||
conn.external_bind()
|
||||
super(CAReplicationManager, self).__init__(
|
||||
realm, hostname, None, port=DEFAULT_PORT, conn=conn)
|
||||
self.db_suffix = DN(('o', 'ipaca'))
|
||||
|
||||
Reference in New Issue
Block a user