From bbac233b5ee487ab0e035cf0b861144769a0b738 Mon Sep 17 00:00:00 2001 From: Oleg Fayans Date: Wed, 21 Sep 2016 11:22:59 +0200 Subject: [PATCH] tests: Fixed method failures during second call for the method When the same host is used for numerous server/replica installations/uninstallations at some point the /etc/openldap/ldap.conf file gets corruped which results in ldapsearch unaware of the default ldap_uri to connect. The workaround would be to provide ldap hostname for each ldapsearch. Attention: please unapply this fix once the original issue is resolved. https://fedorahosted.org/freeipa/ticket/5880 Reviewed-By: David Kupka --- ipatests/test_integration/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py index ac36e2e02..d6cf05b31 100644 --- a/ipatests/test_integration/tasks.py +++ b/ipatests/test_integration/tasks.py @@ -249,7 +249,8 @@ def enable_replication_debugging(host): """) host.run_command(['ldapmodify', '-x', '-D', str(host.config.dirman_dn), - '-w', host.config.dirman_password], + '-w', host.config.dirman_password, + '-h', host.hostname], stdin_text=logging_ldif)