From 5c06e27ff90e917393efdeb58f0f671022803d96 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Oct 03 2013 17:50:35 +0000 Subject: ipatests.test_integration.host: Add logging to ldap_connect() --- diff --git a/ipatests/test_integration/host.py b/ipatests/test_integration/host.py index 7e5fca1..a5cced8 100644 --- a/ipatests/test_integration/host.py +++ b/ipatests/test_integration/host.py @@ -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):