From 0e22314c9bafb684e5e18f7d3937dfc7e04c8561 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 12 Oct 2018 14:20:25 +0200 Subject: [PATCH] ipa-advise: update url of cacerdir_rehash tool On legacy systems which don't have cacerdir_rehash tool (provided by authconfig) the generated advise script downloads this tool from project page and uses it. After decommision of Fedorahosted and move of authconfig project to Pagure, this url was not updated in FreeIPA project. This patch updates the url. https://pagure.io/freeipa/issue/7731 Signed-off-by: Petr Vobornik Reviewed-By: Christian Heimes --- ipaserver/advise/plugins/legacy_clients.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ipaserver/advise/plugins/legacy_clients.py b/ipaserver/advise/plugins/legacy_clients.py index 7916965dd..2a56922b8 100644 --- a/ipaserver/advise/plugins/legacy_clients.py +++ b/ipaserver/advise/plugins/legacy_clients.py @@ -28,6 +28,9 @@ from ipapython.ipautil import template_file register = Registry() +CACERTDIR_REHASH_URL = ('https://pagure.io/authconfig/raw/master/f/' + 'cacertdir_rehash') + class config_base_legacy_client(Advice): def get_uri_and_base(self): @@ -50,8 +53,6 @@ class config_base_legacy_client(Advice): 'location. If this value is different on your system ' 'the script needs to be modified accordingly.\n') - cacertdir_rehash = ('https://fedorahosted.org/authconfig/browser/' - 'cacertdir_rehash?format=txt') self.log.comment('Download the CA certificate of the IPA server') self.log.command('mkdir -p -m 755 /etc/openldap/cacerts') self.log.command('curl http://%s/ipa/config/ca.crt -o ' @@ -60,7 +61,8 @@ class config_base_legacy_client(Advice): self.log.comment('Generate hashes for the openldap library') self.log.command('command -v cacertdir_rehash') self.log.command('if [ $? -ne 0 ] ; then') - self.log.command(' curl "%s" -o cacertdir_rehash ;' % cacertdir_rehash) + self.log.command(' curl "%s" -o cacertdir_rehash ;' % + CACERTDIR_REHASH_URL) self.log.command(' chmod 755 ./cacertdir_rehash ;') self.log.command(' ./cacertdir_rehash /etc/openldap/cacerts/ ;') self.log.command('else')