Blame SOURCES/0005-Add-workaround-for-missing-kra_server_server.patch
|
|
79af3c |
From d265e3fd23a18b051e363048ffbeae7d11fb05a3 Mon Sep 17 00:00:00 2001
|
|
|
79af3c |
From: Christian Heimes <cheimes@redhat.com>
|
|
|
79af3c |
Date: Tue, 20 Jun 2017 15:42:53 +0200
|
|
|
79af3c |
Subject: [PATCH 5/5] Add workaround for missing kra_server_server
|
|
|
79af3c |
|
|
|
79af3c |
Fixes rhbz #1462403
|
|
|
79af3c |
---
|
|
|
79af3c |
custodia/ipa/vault.py | 5 +++--
|
|
|
79af3c |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
79af3c |
|
|
|
79af3c |
diff --git a/custodia/ipa/vault.py b/custodia/ipa/vault.py
|
|
|
79af3c |
index f681c54..cba2d5b 100644
|
|
|
79af3c |
--- a/custodia/ipa/vault.py
|
|
|
79af3c |
+++ b/custodia/ipa/vault.py
|
|
|
79af3c |
@@ -129,8 +129,9 @@ class IPAVault(CSStore):
|
|
|
79af3c |
self.ipa.Command.ping()[u'summary'])
|
|
|
79af3c |
# retrieve and cache KRA transport cert
|
|
|
79af3c |
response = self.ipa.Command.vaultconfig_show()
|
|
|
79af3c |
- servers = response[u'result'][u'kra_server_server']
|
|
|
79af3c |
- self.logger.info("KRA server(s) %s", ', '.join(servers))
|
|
|
79af3c |
+ servers = response[u'result'].get(u'kra_server_server', ())
|
|
|
79af3c |
+ if servers:
|
|
|
79af3c |
+ self.logger.info("KRA server(s) %s", ', '.join(servers))
|
|
|
79af3c |
|
|
|
79af3c |
service, user_host, realm = krb5_unparse_principal_name(
|
|
|
79af3c |
gssapi_principal)
|
|
|
79af3c |
--
|
|
|
79af3c |
2.9.4
|
|
|
79af3c |
|