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
This commit is contained in:
Endi S. Dewata 2011-07-06 10:03:04 -05:00 committed by Adam Young
parent a38ad1d433
commit aca908e1e4
4 changed files with 50 additions and 0 deletions

View File

@ -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: [

View File

@ -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,

View File

@ -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']

View File

@ -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
}).