From 83cb98285810970909162cd1de1615bec7f8e685 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 12 Jun 2014 09:46:36 +0200 Subject: [PATCH] Add $REALM to variables supported by the managed permission updater This will allow converting password policy permissions Part of the work for: https://fedorahosted.org/freeipa/ticket/4346 Reviewed-By: Martin Kosek --- ipaserver/install/plugins/update_managed_permissions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipaserver/install/plugins/update_managed_permissions.py b/ipaserver/install/plugins/update_managed_permissions.py index 2ca054d50..7394e6282 100644 --- a/ipaserver/install/plugins/update_managed_permissions.py +++ b/ipaserver/install/plugins/update_managed_permissions.py @@ -345,6 +345,7 @@ class update_managed_permissions(PostUpdate): if 'replaces' in template: sub_dict = { 'SUFFIX': str(self.api.env.basedn), + 'REALM': str(self.api.env.realm), } legacy_acistrs = [ipautil.template_str(r, sub_dict) for r in template['replaces']]