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 <dkupka@redhat.com>
This commit is contained in:
Oleg Fayans 2016-09-21 11:22:59 +02:00 committed by David Kupka
parent 330a3ca931
commit bbac233b5e

View File

@ -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)