Hi,

This is a regression fix introduced by commit id:
285ed59889590ddd0d6ca2e2a030b28527941cbf

Fixes internal error in case of re-establishing the trust.

--
Tomas Babej
Associate Software Engeneer | Red Hat | Identity Management
RHCE | Brno Site | IRC: tbabej | freeipa.org

From 8fe010e9b77213a82713c5ff5e93a5d7f080535d Mon Sep 17 00:00:00 2001
From: Tomas Babej <tomasba...@gmail.com>
Date: Mon, 21 Oct 2013 14:12:23 +0200
Subject: [PATCH] Get the created range type in case of re-establishing trust

This is a regression fix introduced by commit id:
285ed59889590ddd0d6ca2e2a030b28527941cbf

Fixes internal error in case of re-establishing the trust.
---
 ipalib/plugins/trust.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipalib/plugins/trust.py b/ipalib/plugins/trust.py
index f4e5d021d4b3893445b67a898f48c90aa1b4c51b..af7bf33a184fb8e138db9dac7e9c860a776f8daf 100644
--- a/ipalib/plugins/trust.py
+++ b/ipalib/plugins/trust.py
@@ -342,6 +342,8 @@ sides.
             # provide a global mapping across all subdomains
             (created_range_type, _, _) = self.add_range(range_name, dom_sid,
                                                         *keys, **options)
+        else:
+            created_range_type = old_range['result']['iparangetype'][0]
 
         trust_filter = "cn=%s" % result['value']
         ldap = self.obj.backend
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to