From 279d8b7ec49585eab47baab145eb89d177fc3f24 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud <> Date: Tue, 19 Jan 2021 09:31:32 +0100 Subject: [PATCH] ipatests: fix healthcheck test for ipahealthcheck.ds.encryption 389ds is combining the value set in dse.ldif and the current crypto policy to evaluate the min TLS version that it will be using. The test needs to change the crypto policy to LEGACY in order to allow TLS 1.0, because the DEFAULT policy prevents TLS 1.0 on fc33+. Fixes: https://pagure.io/freeipa/issue/8670 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Kaleemullah Siddiqui --- ipatests/test_integration/test_ipahealthcheck.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py index 92ad1860e..cc9c909ad 100644 --- a/ipatests/test_integration/test_ipahealthcheck.py +++ b/ipatests/test_integration/test_ipahealthcheck.py @@ -1026,6 +1026,10 @@ class TestIpaHealthCheck(IntegrationTest): """ instance = realm_to_serverid(self.master.domain.realm) cmd = ["systemctl", "restart", "dirsrv@{}".format(instance)] + # The crypto policy must be set to LEGACY otherwise 389ds + # combines crypto policy amd minSSLVersion and removes + # TLS1.0 on fedora>=33 as the DEFAULT policy forbids TLS1.0 + self.master.run_command(['update-crypto-policies', '--set', 'LEGACY']) self.master.run_command( [ "dsconf", @@ -1037,6 +1041,7 @@ class TestIpaHealthCheck(IntegrationTest): ) self.master.run_command(cmd) yield + self.master.run_command(['update-crypto-policies', '--set', 'DEFAULT']) self.master.run_command( [ "dsconf",