diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-06-09 17:59:53 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-11 13:21:29 +0200 |
commit | 2f3cdba54620989afba0ce1b423cddb56b841ab3 (patch) | |
tree | 9a2375c4dbdb117f39bc3f6f0a86130b20f190d4 /ipaserver/install/plugins | |
parent | 6acaf73b0c6f7301d5a5d4292a4f9926cc370867 (diff) | |
download | freeipa-2f3cdba54620989afba0ce1b423cddb56b841ab3.tar.gz freeipa-2f3cdba54620989afba0ce1b423cddb56b841ab3.tar.xz freeipa-2f3cdba54620989afba0ce1b423cddb56b841ab3.zip |
Make 'permission' the default bind type for managed permissions
This reduces typing (or copy/pasting), and draws a bit of attention
to any non-default privileges (currently 'any' or 'anonymous').
Leaving the bindtype out by mistake isn't dangerous: by default
a permission is not granted to anyone, since it is not included in
any priviliges.
Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipaserver/install/plugins')
-rw-r--r-- | ipaserver/install/plugins/update_managed_permissions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/plugins/update_managed_permissions.py b/ipaserver/install/plugins/update_managed_permissions.py index 417e4d9fc..7b1405a19 100644 --- a/ipaserver/install/plugins/update_managed_permissions.py +++ b/ipaserver/install/plugins/update_managed_permissions.py @@ -533,7 +533,7 @@ class update_managed_permissions(PostUpdate): entry['ipapermtarget'] = ipapermtarget # Attributes from template - bindruletype = template.pop('ipapermbindruletype') + bindruletype = template.pop('ipapermbindruletype', 'permission') if is_new: entry.single_value['ipapermbindruletype'] = bindruletype |