diff options
author | Petr Viktorin <[email protected]> | 2014-08-20 15:34:34 +0200 |
---|---|---|
committer | Martin Kosek <[email protected]> | 2014-08-21 14:07:01 +0200 |
commit | e49768864f5fd735f9f30241b22c595908b762af (patch) | |
tree | 5b0f6e3278c6a7cdf3dee83382910884a3781480 /ipalib | |
parent | e5b78c2029974dfbb207ec56fc25487f69bd526e (diff) | |
download | freeipa-e49768864f5fd735f9f30241b22c595908b762af.tar.gz freeipa-e49768864f5fd735f9f30241b22c595908b762af.tar.xz freeipa-e49768864f5fd735f9f30241b22c595908b762af.zip |
service: Normalize service principal in get_dn
This will make any lookup go through the normalization.
Reviewed-By: Martin Kosek <[email protected]>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/service.py | 3 |
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() |