URL: https://github.com/freeipa/freeipa/pull/1006
Author: frasertweedale
 Title: #1006: py3: fix vault public key decoding
Action: opened

PR body:
"""
Part of: https://pagure.io/freeipa/issue/7033

This commit fixes one issue in FreeIPA related to vault.  It does not fully
resolve #7033 because there are changes needed in Dogtag too.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1006/head:pr1006
git checkout pr1006
From bb3987bfffd995471db720c129690c92c012e86a Mon Sep 17 00:00:00 2001
From: Fraser Tweedale <ftwee...@redhat.com>
Date: Mon, 28 Aug 2017 14:38:17 +1000
Subject: [PATCH] py3: fix vault public key decoding

Part of: https://pagure.io/freeipa/issue/7033
---
 ipaclient/plugins/vault.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaclient/plugins/vault.py b/ipaclient/plugins/vault.py
index 398e4015b6..3f18c32a79 100644
--- a/ipaclient/plugins/vault.py
+++ b/ipaclient/plugins/vault.py
@@ -890,7 +890,7 @@ def forward(self, *args, **options):
 
         elif vault_type == u'asymmetric':
 
-            public_key = vault['ipavaultpublickey'][0].encode('utf-8')
+            public_key = vault['ipavaultpublickey'][0]
 
             # generate encryption key
             encryption_key = base64.b64encode(os.urandom(32))
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to