https://fedorahosted.org/freeipa/ticket/5233
--
Petr Vobornik
From 74a37069b5c8a7aece1030bc34bfde89401922c8 Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Tue, 18 Aug 2015 12:14:36 +0200
Subject: [PATCH] vault: normalize service principal in service vault
 operations

https://fedorahosted.org/freeipa/ticket/5233
---
 ipalib/plugins/vault.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipalib/plugins/vault.py b/ipalib/plugins/vault.py
index 88c63071f04462aa240a70d3a3eeac2d04e66062..adccf2727967bd1a4bf1d16b69b6c8c9ca333ae1 100644
--- a/ipalib/plugins/vault.py
+++ b/ipalib/plugins/vault.py
@@ -47,6 +47,7 @@ from ipalib.plugins.baseldap import LDAPObject, LDAPCreate, LDAPDelete,\
     LDAPModMember, pkey_to_value
 from ipalib.request import context
 from ipalib.plugins.user import split_principal
+from ipalib.plugins.service import normalize_principal
 from ipalib import _, ngettext
 from ipaplatform.paths import paths
 from ipapython.dn import DN
@@ -214,6 +215,7 @@ vault_options = (
     Str(
         'service?',
         doc=_('Service name of the service vault'),
+        normalizer=lambda value: normalize_principal(value),
     ),
     Flag(
         'shared?',
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to