summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2014-09-03 09:07:16 +0200
committerMartin Kosek <mkosek@redhat.com>2014-09-05 10:51:42 +0200
commit6d94cdf250c470bf77a0e769ea30a90fa5815b81 (patch)
tree499bd2ba7ddc4cd5311b35070e8f7db9a85b8b88 /ipa-client
parent62a255949377d4a6b3cc197462223b5b0495d18d (diff)
downloadfreeipa-6d94cdf250c470bf77a0e769ea30a90fa5815b81.tar.gz
freeipa-6d94cdf250c470bf77a0e769ea30a90fa5815b81.tar.xz
freeipa-6d94cdf250c470bf77a0e769ea30a90fa5815b81.zip
Use certmonger D-Bus API instead of messing with its files.
FreeIPA certmonger module changed to use D-Bus to communicate with certmonger. Using the D-Bus API should be more stable and supported way of using cermonger than tampering with its files. >=certmonger-0.75.13 is needed for this to work. https://fedorahosted.org/freeipa/ticket/4280 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipa-client')
-rw-r--r--ipa-client/ipaclient/ipa_certupdate.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ipa-client/ipaclient/ipa_certupdate.py b/ipa-client/ipaclient/ipa_certupdate.py
index 4199a293b..8e7fe0470 100644
--- a/ipa-client/ipaclient/ipa_certupdate.py
+++ b/ipa-client/ipaclient/ipa_certupdate.py
@@ -122,11 +122,10 @@ class CertUpdate(admintool.AdminTool):
dogtag_constants = dogtag.configured_constants()
nickname = 'caSigningCert cert-pki-ca'
- criteria = (
- ('cert_storage_location', dogtag_constants.ALIAS_DIR,
- certmonger.NPATH),
- ('cert_nickname', nickname, None),
- )
+ criteria = {
+ 'cert-database': dogtag_constants.ALIAS_DIR,
+ 'cert-nickname': nickname,
+ }
request_id = certmonger.get_request_id(criteria)
if request_id is not None:
timeout = api.env.startup_timeout + 60