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:
Tomas Krizek 2016-08-09 14:09:24 +02:00 committed by Martin Basti
parent 96db47cfa5
commit af4ebaca62

View File

@ -575,7 +575,7 @@ class service(LDAPObject):
pass
try:
return dn['krbprincipalname'][0]
return dn['krbprincipalname']
except KeyError:
return unicode(dn)