summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-06 10:03:04 -0500
committerAdam Young <ayoung@redhat.com>2011-07-06 11:42:14 -0400
commitaca908e1e4d08d52a95edca2013c510abe2d1788 (patch)
treee97dab1ba15a8def1b37e902febfe9b4bb513f1f
parenta38ad1d433a4cb6d35c582d48ed044e7fbfd8508 (diff)
downloadfreeipa-aca908e1e4d08d52a95edca2013c510abe2d1788.zip
freeipa-aca908e1e4d08d52a95edca2013c510abe2d1788.tar.gz
freeipa-aca908e1e4d08d52a95edca2013c510abe2d1788.tar.xz
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
-rw-r--r--install/ui/group.js12
-rw-r--r--install/ui/host.js12
-rw-r--r--install/ui/hostgroup.js12
-rw-r--r--install/ui/user.js14
4 files changed, 50 insertions, 0 deletions
diff --git a/install/ui/group.js b/install/ui/group.js
index fbe89a4..410a295 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 4fdc32f..6b5e360 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 31f4c52..cad77a7 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 9617dec..9fd14d6 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
}).