pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0073-vault-normalize-service-principal-in-service-vault-o.patch

590d18
From 9e930edf8b3b4e65bf39043e7b033f0b5537b7e3 Mon Sep 17 00:00:00 2001
590d18
From: Petr Vobornik <pvoborni@redhat.com>
590d18
Date: Tue, 18 Aug 2015 12:14:36 +0200
590d18
Subject: [PATCH] vault: normalize service principal in service vault
590d18
 operations
590d18
590d18
https://fedorahosted.org/freeipa/ticket/5233
590d18
590d18
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
590d18
---
590d18
 ipalib/plugins/vault.py | 2 ++
590d18
 1 file changed, 2 insertions(+)
590d18
590d18
diff --git a/ipalib/plugins/vault.py b/ipalib/plugins/vault.py
590d18
index 88c63071f04462aa240a70d3a3eeac2d04e66062..a1508b63b8c8aa506eadad415ecf7fa4942c74fc 100644
590d18
--- a/ipalib/plugins/vault.py
590d18
+++ b/ipalib/plugins/vault.py
590d18
@@ -47,6 +47,7 @@ from ipalib.plugins.baseldap import LDAPObject, LDAPCreate, LDAPDelete,\
590d18
     LDAPModMember, pkey_to_value
590d18
 from ipalib.request import context
590d18
 from ipalib.plugins.user import split_principal
590d18
+from ipalib.plugins.service import normalize_principal
590d18
 from ipalib import _, ngettext
590d18
 from ipaplatform.paths import paths
590d18
 from ipapython.dn import DN
590d18
@@ -214,6 +215,7 @@ vault_options = (
590d18
     Str(
590d18
         'service?',
590d18
         doc=_('Service name of the service vault'),
590d18
+        normalizer=normalize_principal,
590d18
     ),
590d18
     Flag(
590d18
         'shared?',
590d18
-- 
590d18
2.4.3
590d18