From 7b8247a485081a6f1f5201e286ac17228f976355 Mon Sep 17 00:00:00 2001 From: Martin Babinsky Date: Mon, 27 Jun 2016 08:48:29 +0200 Subject: keep setting ipakrbprincipal objectclass on new service entries this is required for replica promotion to work, since the ACI allowing hosts to add their own services uses this objectclass as target filter. This partially reverts changes from commit 705f66f7490c64de1adc129221b31927616c485d https://fedorahosted.org/freeipa/ticket/5996 Reviewed-By: Petr Spacek Reviewed-By: Martin Basti --- ipatests/test_xmlrpc/objectclasses.py | 1 + ipatests/test_xmlrpc/test_service_plugin.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'ipatests/test_xmlrpc') diff --git a/ipatests/test_xmlrpc/objectclasses.py b/ipatests/test_xmlrpc/objectclasses.py index 7050de289..134a08803 100644 --- a/ipatests/test_xmlrpc/objectclasses.py +++ b/ipatests/test_xmlrpc/objectclasses.py @@ -100,6 +100,7 @@ service = [ u'ipaobject', u'ipaservice', u'pkiuser', + u'ipakrbprincipal', u'top', ] diff --git a/ipatests/test_xmlrpc/test_service_plugin.py b/ipatests/test_xmlrpc/test_service_plugin.py index 3009521c3..f22824f9a 100644 --- a/ipatests/test_xmlrpc/test_service_plugin.py +++ b/ipatests/test_xmlrpc/test_service_plugin.py @@ -239,6 +239,7 @@ class test_service(Declarative): result=dict( dn=service1dn, krbprincipalname=[service1], + ipakrbprincipalalias=[service1], krbcanonicalname=[service1], objectclass=objectclasses.service, ipauniqueid=[fuzzy_uuid], @@ -301,7 +302,8 @@ class test_service(Declarative): dict( dn=service1dn, krbprincipalname=[service1], - krbcanonicalname=service1, + ipakrbprincipalalias=[service1], + krbcanonicalname=[service1], objectclass=objectclasses.service, ipauniqueid=[fuzzy_uuid], has_keytab=False, -- cgit