diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-07-06 10:03:04 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-07-06 11:42:14 -0400 |
commit | aca908e1e4d08d52a95edca2013c510abe2d1788 (patch) | |
tree | e97dab1ba15a8def1b37e902febfe9b4bb513f1f /install | |
parent | a38ad1d433a4cb6d35c582d48ed044e7fbfd8508 (diff) | |
download | freeipa-aca908e1e4d08d52a95edca2013c510abe2d1788.tar.gz freeipa-aca908e1e4d08d52a95edca2013c510abe2d1788.tar.xz freeipa-aca908e1e4d08d52a95edca2013c510abe2d1788.zip |
Fixed HBAC/Sudo rules associations.
The HBAC/Sudo rules associations in users, groups, hosts and host
groups have been fixed to use the correct associator and method
names.
Ticket #1438
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/group.js | 12 | ||||
-rw-r--r-- | install/ui/host.js | 12 | ||||
-rw-r--r-- | install/ui/hostgroup.js | 12 | ||||
-rw-r--r-- | install/ui/user.js | 14 |
4 files changed, 50 insertions, 0 deletions
diff --git a/install/ui/group.js b/install/ui/group.js index fbe89a4fd..410a295d4 100644 --- a/install/ui/group.js +++ b/install/ui/group.js @@ -74,6 +74,18 @@ IPA.entity_factories.group = function () { name: 'memberof_role', associator: IPA.serial_associator }). + association_facet({ + name: 'memberof_hbacrule', + associator: IPA.serial_associator, + add_method: 'add_user', + remove_method: 'remove_user' + }). + association_facet({ + name: 'memberof_sudorule', + associator: IPA.serial_associator, + add_method: 'add_user', + remove_method: 'remove_user' + }). standard_association_facets(). adder_dialog({ fields: [ diff --git a/install/ui/host.js b/install/ui/host.js index 4fdc32fe4..6b5e3606e 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -85,6 +85,18 @@ IPA.entity_factories.host = function () { name: 'memberof_role', associator: IPA.serial_associator }). + association_facet({ + name: 'memberof_hbacrule', + associator: IPA.serial_associator, + add_method: 'add_host', + remove_method: 'remove_host' + }). + association_facet({ + name: 'memberof_sudorule', + associator: IPA.serial_associator, + add_method: 'add_host', + remove_method: 'remove_host' + }). standard_association_facets(). adder_dialog({ width:500, diff --git a/install/ui/hostgroup.js b/install/ui/hostgroup.js index 31f4c5250..cad77a7a5 100644 --- a/install/ui/hostgroup.js +++ b/install/ui/hostgroup.js @@ -37,6 +37,18 @@ IPA.entity_factories.hostgroup = function() { name: 'memberof_hostgroup', associator: IPA.serial_associator }). + association_facet({ + name: 'memberof_hbacrule', + associator: IPA.serial_associator, + add_method: 'add_host', + remove_method: 'remove_host' + }). + association_facet({ + name: 'memberof_sudorule', + associator: IPA.serial_associator, + add_method: 'add_host', + remove_method: 'remove_host' + }). standard_association_facets(). adder_dialog({ fields:['cn','description'] diff --git a/install/ui/user.js b/install/ui/user.js index 9617dec99..9fd14d69d 100644 --- a/install/ui/user.js +++ b/install/ui/user.js @@ -119,6 +119,20 @@ IPA.entity_factories.user = function() { associator: IPA.serial_associator, link: link }). + association_facet({ + name: 'memberof_hbacrule', + associator: IPA.serial_associator, + add_method: 'add_user', + remove_method: 'remove_user', + link: link + }). + association_facet({ + name: 'memberof_sudorule', + associator: IPA.serial_associator, + add_method: 'add_user', + remove_method: 'remove_user', + link: link + }). standard_association_facets({ link: link }). |