pgreco / rpms / ipa

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

Blame SOURCES/0131-Fix-regression-introduced-in-ipa-certupdate.patch

403b09
From 29933c3f480344b7066554f3e66874c2aa4625a8 Mon Sep 17 00:00:00 2001
403b09
From: Florence Blanc-Renaud <flo@redhat.com>
403b09
Date: Fri, 9 Sep 2016 15:04:35 +0200
403b09
Subject: [PATCH] Fix regression introduced in ipa-certupdate
403b09
403b09
The fix for 6288 was overwritten by commit 08b768313020c45bfa82d67cd214afabf605f4b3.
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6288
403b09
403b09
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
403b09
---
403b09
 ipaclient/ipa_certupdate.py | 5 ++++-
403b09
 1 file changed, 4 insertions(+), 1 deletion(-)
403b09
403b09
diff --git a/ipaclient/ipa_certupdate.py b/ipaclient/ipa_certupdate.py
403b09
index 4b97b85b83c8b1a130d6db9cdcc7a76fc569af9e..52f73e196c8f18c9f944dd7eeaa442780e17cb7d 100644
403b09
--- a/ipaclient/ipa_certupdate.py
403b09
+++ b/ipaclient/ipa_certupdate.py
403b09
@@ -83,7 +83,10 @@ class CertUpdate(admintool.AdminTool):
403b09
             certs = certstore.get_ca_certs(ldap, api.env.basedn,
403b09
                                            api.env.realm, ca_enabled)
403b09
 
403b09
-            lwcas = api.Command.ca_find()['result']
403b09
+            if ca_enabled:
403b09
+                lwcas = api.Command.ca_find()['result']
403b09
+            else:
403b09
+                lwcas = []
403b09
 
403b09
             api.Backend.rpcclient.disconnect()
403b09
         finally:
403b09
-- 
403b09
2.9.3
403b09