mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix ipa-caalc-add-service error message
When service is not found in ipa-caalc-add-service command, return the entire principal name of the service instead of the first character. https://fedorahosted.org/freeipa/ticket/6171 Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
parent
96db47cfa5
commit
af4ebaca62
@ -575,7 +575,7 @@ class service(LDAPObject):
|
||||
pass
|
||||
|
||||
try:
|
||||
return dn['krbprincipalname'][0]
|
||||
return dn['krbprincipalname']
|
||||
except KeyError:
|
||||
return unicode(dn)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user