pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0112-ipa-client-install-remove-extra-space-in-pkinit_anch.patch

ac7d03
From 7066dcf1154f9538e9da6bcbcedb69b973509b3c Mon Sep 17 00:00:00 2001
ac7d03
From: Florence Blanc-Renaud <flo@redhat.com>
ac7d03
Date: Tue, 2 May 2017 10:22:22 +0200
ac7d03
Subject: [PATCH] ipa-client-install: remove extra space in pkinit_anchors
ac7d03
 definition
ac7d03
ac7d03
ipa-client-install modifies /etc/krb5.conf and defines the following line:
ac7d03
    pkinit_anchors = FILE: /etc/ipa/ca.crt
ac7d03
ac7d03
The extra space between FILE: and /etc/ipa/ca.crt break pkinit.
ac7d03
ac7d03
https://pagure.io/freeipa/issue/6916
ac7d03
ac7d03
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
ac7d03
---
ac7d03
 ipaclient/install/client.py | 2 +-
ac7d03
 1 file changed, 1 insertion(+), 1 deletion(-)
ac7d03
ac7d03
diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py
ac7d03
index 549c9b8199255ec57cde3624d34e98d2a9be8d69..abca692fd61be4a9f35a1398fb2af4b1d9e8689b 100644
ac7d03
--- a/ipaclient/install/client.py
ac7d03
+++ b/ipaclient/install/client.py
ac7d03
@@ -710,7 +710,7 @@ def configure_krb5_conf(
ac7d03
         kropts.append(krbconf.setOption('default_domain', cli_domain))
ac7d03
 
ac7d03
     kropts.append(
ac7d03
-        krbconf.setOption('pkinit_anchors', 'FILE: %s' % paths.IPA_CA_CRT))
ac7d03
+        krbconf.setOption('pkinit_anchors', 'FILE:%s' % paths.IPA_CA_CRT))
ac7d03
     ropts = [{
ac7d03
         'name': cli_realm,
ac7d03
         'type': 'subsection',
ac7d03
-- 
ac7d03
2.12.2
ac7d03