summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-08-20 15:34:34 +0200
committerMartin Kosek <mkosek@redhat.com>2014-08-21 14:07:01 +0200
commita8ba6b3b8cdaf39152bce394ad419d28037f687e (patch)
tree31539dbdb7c2c87bae69c7a5ef0d21b7f8877e80 /ipalib
parent8fabd6dde152fc394bd4f093d93c8a46e5b2851b (diff)
downloadfreeipa-a8ba6b3b8cdaf39152bce394ad419d28037f687e.tar.gz
freeipa-a8ba6b3b8cdaf39152bce394ad419d28037f687e.tar.xz
freeipa-a8ba6b3b8cdaf39152bce394ad419d28037f687e.zip
service: Normalize service principal in get_dn
This will make any lookup go through the normalization. Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/service.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py
index 69b2cc6c3..3ca5066f3 100644
--- a/ipalib/plugins/service.py
+++ b/ipalib/plugins/service.py
@@ -406,6 +406,9 @@ class service(LDAPObject):
raise errors.ValidationError(name='ipakrbauthzdata',
error=_('NONE value cannot be combined with other PAC types'))
+ def get_dn(self, *keys, **kwargs):
+ keys = (normalize_principal(k) for k in keys)
+ return super(service, self).get_dn(*keys, **kwargs)
@register()