https://fedorahosted.org/freeipa/ticket/5985

--
Martin^3 Babinsky
From 1fccd557a5582f49b715e57552a27b29d1325add Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Fri, 24 Jun 2016 10:32:11 +0200
Subject: [PATCH] Fix incorrect construction of service principal during
 replica cleanup

https://fedorahosted.org/freeipa/ticket/5985
---
 ipaserver/plugins/server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/plugins/server.py b/ipaserver/plugins/server.py
index b93f72c72447a235087253741998b2edfd4780c8..8eca1f5d89a30b6a223bddfb64c1d724b45fc42a 100644
--- a/ipaserver/plugins/server.py
+++ b/ipaserver/plugins/server.py
@@ -540,7 +540,7 @@ class server_del(LDAPDelete):
         conn = self.Backend.ldap2
         env = self.api.env
 
-        master_principal = "{}@{}".format(master, env)
+        master_principal = "{}@{}".format(master, env.realm)
 
         # remove replica memberPrincipal from s4u2proxy configuration
         s4u2proxy_subtree = DN(env.container_s4u2proxy,
-- 
2.5.5

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to