summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-10-03 17:29:56 +0200
committerPetr Viktorin <pviktori@redhat.com>2013-10-03 19:50:30 +0200
commitb792520b8afdced97b163a5c3245f76981d84826 (patch)
tree5006c8425e20bc21fd4e26addce8646b66707235 /ipatests
parent8acd7be55b724c34d1d7aa169cbdeeffb7545c80 (diff)
downloadfreeipa.git-b792520b8afdced97b163a5c3245f76981d84826.tar.gz
freeipa.git-b792520b8afdced97b163a5c3245f76981d84826.tar.xz
freeipa.git-b792520b8afdced97b163a5c3245f76981d84826.zip
ipatests.test_integration.host: Add logging to ldap_connect()
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_integration/host.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipatests/test_integration/host.py b/ipatests/test_integration/host.py
index 7e5fca1c..a5cced84 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):