ipatests: collect samba logs when setting up trust to AD

In many cases it is impossible to investigate test failures of
environments where a trust to Active Directory is establishe without
Samba logs.

Collect Samba logs by default and make sure Samba is configured with
higher log levels if we are going to configure IPA to setup trust to
Active Directory.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Alexander Bokovoy authored and Florence Blanc-Renaud committed 2022-04-14 21:33:53 +02:00
1 parent 91d083c36e
commit ee6472cee2
2 files changed
+2

No files matched your search

@@ -99,6 +99,7 @@ CLASS_LOGFILES = [
paths.NETWORK_MANAGER_CONFIG_DIR,
paths.SYSTEMD_RESOLVED_CONF,
paths.SYSTEMD_RESOLVED_CONF_DIR,
'/var/log/samba',
]
+1
View File
@@ -594,6 +594,7 @@ def install_adtrust(host):
'-a', host.config.admin_password,
'--add-sids'])
host.run_command(['net', 'conf', 'setparm', 'global', 'log level', '10'])
Firewall(host).enable_service("freeipa-trust")
# Restart named because it lost connection to dirsrv