From 9e930edf8b3b4e65bf39043e7b033f0b5537b7e3 Mon Sep 17 00:00:00 2001 From: Petr Vobornik 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 Reviewed-By: Jan Cholasta --- ipalib/plugins/vault.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipalib/plugins/vault.py b/ipalib/plugins/vault.py index 88c63071f04462aa240a70d3a3eeac2d04e66062..a1508b63b8c8aa506eadad415ecf7fa4942c74fc 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=normalize_principal, ), Flag( 'shared?', -- 2.4.3