pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0065-Fix-ipa-caalc-add-service-error-message.patch

403b09
From 69a3d8a8abffe7a785efda8e6e2012718521783f Mon Sep 17 00:00:00 2001
403b09
From: Tomas Krizek <tkrizek@redhat.com>
403b09
Date: Tue, 9 Aug 2016 14:09:24 +0200
403b09
Subject: [PATCH] Fix ipa-caalc-add-service error message
403b09
403b09
When service is not found in ipa-caalc-add-service command, return the
403b09
entire principal name of the service instead of the first character.
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6171
403b09
403b09
Reviewed-By: Petr Spacek <pspacek@redhat.com>
403b09
---
403b09
 ipaserver/plugins/service.py | 2 +-
403b09
 1 file changed, 1 insertion(+), 1 deletion(-)
403b09
403b09
diff --git a/ipaserver/plugins/service.py b/ipaserver/plugins/service.py
403b09
index 28ea364e9aca8c997a86e27c529fc49d8410115b..a44dcaa5e348d3deedda6c0b4f55760ad873cf49 100644
403b09
--- a/ipaserver/plugins/service.py
403b09
+++ b/ipaserver/plugins/service.py
403b09
@@ -575,7 +575,7 @@ class service(LDAPObject):
403b09
             pass
403b09
 
403b09
         try:
403b09
-            return dn['krbprincipalname'][0]
403b09
+            return dn['krbprincipalname']
403b09
         except KeyError:
403b09
             return unicode(dn)
403b09
 
403b09
-- 
403b09
2.7.4
403b09