summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorTomas Krizek <tkrizek@redhat.com>2016-08-09 14:09:24 +0200
committerMartin Basti <mbasti@redhat.com>2016-08-09 16:24:39 +0200
commitaf4ebaca6293779ef686c7bacffbc97945ebee95 (patch)
treeece205e40da1a560e13e8964245332b7f0315147 /ipaserver/plugins
parent96db47cfa516911741dd7942509b0a94551dbace (diff)
downloadfreeipa-af4ebaca6293779ef686c7bacffbc97945ebee95.tar.gz
freeipa-af4ebaca6293779ef686c7bacffbc97945ebee95.tar.xz
freeipa-af4ebaca6293779ef686c7bacffbc97945ebee95.zip
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>
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/service.py b/ipaserver/plugins/service.py
index 28ea364e9..a44dcaa5e 100644
--- a/ipaserver/plugins/service.py
+++ b/ipaserver/plugins/service.py
@@ -575,7 +575,7 @@ class service(LDAPObject):
pass
try:
- return dn['krbprincipalname'][0]
+ return dn['krbprincipalname']
except KeyError:
return unicode(dn)