mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests.test_integration.host: Add logging to ldap_connect()
This commit is contained in:
parent
f2e8624e76
commit
5c06e27ff9
@ -144,9 +144,11 @@ class BaseHost(object):
|
||||
def ldap_connect(self):
|
||||
"""Return an LDAPClient authenticated to this host as directory manager
|
||||
"""
|
||||
self.log.info('Connecting to LDAP')
|
||||
ldap = IPAdmin(self.external_hostname)
|
||||
ldap.do_simple_bind(self.config.dirman_dn,
|
||||
self.config.dirman_password)
|
||||
binddn = self.config.dirman_dn
|
||||
self.log.info('LDAP bind as %s' % binddn)
|
||||
ldap.do_simple_bind(binddn, self.config.dirman_password)
|
||||
return ldap
|
||||
|
||||
def collect_log(self, filename):
|
||||
|
Loading…
Reference in New Issue
Block a user