summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/plugins
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-06-12 09:46:36 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-18 14:56:42 +0200
commit83cb98285810970909162cd1de1615bec7f8e685 (patch)
treeaf2901bdf784e1ecc8152066a9ff4810cca32623 /ipaserver/install/plugins
parent700ac6c11627137db758ad376c44745db579dc84 (diff)
downloadfreeipa-83cb98285810970909162cd1de1615bec7f8e685.tar.gz
freeipa-83cb98285810970909162cd1de1615bec7f8e685.tar.xz
freeipa-83cb98285810970909162cd1de1615bec7f8e685.zip
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 <mkosek@redhat.com>
Diffstat (limited to 'ipaserver/install/plugins')
-rw-r--r--ipaserver/install/plugins/update_managed_permissions.py1
1 files changed, 1 insertions, 0 deletions
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']]