mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Merge branch 'master' of git+ssh://git.fedorahosted.org/git/freeipa
This commit is contained in:
commit
0e45fb9ab1
@ -447,35 +447,41 @@ IPA.dns.record_search_facet = function(spec) {
|
||||
|
||||
var that = IPA.nested_search_facet(spec);
|
||||
|
||||
var init = function() {
|
||||
that.load_all = function(data) {
|
||||
|
||||
that.table.load = function(result) {
|
||||
var types = IPA.dns_record_types();
|
||||
|
||||
that.table.empty();
|
||||
var result = data.result.result;
|
||||
var records = [];
|
||||
|
||||
var types = IPA.dns_record_types();
|
||||
for (var i=0; i<result.length; i++) {
|
||||
var record = result[i];
|
||||
|
||||
for (var i=0; i<result.length; i++) {
|
||||
var record = result[i];
|
||||
for (var j=0; j<types.length; j++) {
|
||||
var type = types[j];
|
||||
if (!record[type.value]) continue;
|
||||
|
||||
for (var j=0; j<types.length; j++) {
|
||||
var type = types[j].value;
|
||||
if (!record[type]) continue;
|
||||
|
||||
var data = record[type];
|
||||
for (var k=0; k<data.length; k++) {
|
||||
that.table.add_record({
|
||||
idnsname: record.idnsname,
|
||||
type: type,
|
||||
data: data[k]
|
||||
});
|
||||
}
|
||||
var values = record[type.value];
|
||||
for (var k=0; k<values.length; k++) {
|
||||
records.push({
|
||||
idnsname: record.idnsname,
|
||||
type: type.label,
|
||||
data: values[k]
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
init();
|
||||
that.load_records(records);
|
||||
|
||||
if (data.result.truncated) {
|
||||
var message = IPA.messages.search.truncated;
|
||||
message = message.replace('${counter}', data.result.count);
|
||||
that.table.summary.text(message);
|
||||
} else {
|
||||
that.table.summary.text(data.result.summary);
|
||||
}
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
@ -107,7 +107,7 @@ IPA.facet = function(spec) {
|
||||
|
||||
that.load = function(data) {
|
||||
that.data = data;
|
||||
that.header.load(data.result.result);
|
||||
that.header.load(data);
|
||||
};
|
||||
|
||||
that.refresh = function() {
|
||||
@ -367,6 +367,8 @@ IPA.facet_header = function(spec) {
|
||||
};
|
||||
|
||||
that.load = function(data) {
|
||||
if (!data) return;
|
||||
var result = data.result.result;
|
||||
if (!that.facet.disable_facet_tabs) {
|
||||
var pkey = that.facet.pkey;
|
||||
|
||||
@ -392,7 +394,7 @@ IPA.facet_header = function(spec) {
|
||||
var facet = facets[j];
|
||||
var link = $('li[name='+facet.name+'] a', span);
|
||||
|
||||
var values = data ? data[facet.name] : null;
|
||||
var values = result ? result[facet.name] : null;
|
||||
if (values) {
|
||||
link.text(facet.label+' ('+values.length+')');
|
||||
} else {
|
||||
@ -472,6 +474,13 @@ IPA.table_facet = function(spec) {
|
||||
that.load = function(data) {
|
||||
that.facet_load(data);
|
||||
|
||||
if (!data) {
|
||||
that.table.empty();
|
||||
that.table.summary.text('');
|
||||
that.table.pagination_control.css('visibility', 'hidden');
|
||||
return;
|
||||
}
|
||||
|
||||
that.table.current_page = 1;
|
||||
that.table.total_pages = 1;
|
||||
|
||||
@ -483,6 +492,8 @@ IPA.table_facet = function(spec) {
|
||||
|
||||
that.table.current_page_input.val(that.table.current_page);
|
||||
that.table.total_pages_span.text(that.table.total_pages);
|
||||
|
||||
that.table.pagination_control.css('visibility', 'visible');
|
||||
};
|
||||
|
||||
|
||||
|
@ -117,7 +117,6 @@ IPA.hbac.test_entity = function(spec) {
|
||||
label: IPA.messages.objects.hbactest.run_test,
|
||||
managed_entity_name: 'hbacrule',
|
||||
disable_breadcrumb: true,
|
||||
pagination: true,
|
||||
facet_group: 'default',
|
||||
columns: [
|
||||
'cn',
|
||||
@ -198,13 +197,6 @@ IPA.hbac.test_facet = function(spec) {
|
||||
}).appendTo(buttons);
|
||||
};
|
||||
|
||||
that.find = function() {
|
||||
var filter = that.filter.val();
|
||||
var state = {};
|
||||
state[that.entity.name+'-'+that.name+'-filter'] = filter;
|
||||
IPA.nav.push_state(state);
|
||||
};
|
||||
|
||||
that.prev = function() {
|
||||
var facet_group = that.entity.get_facet_group('default');
|
||||
var index = facet_group.get_facet_index(that.name);
|
||||
@ -262,7 +254,6 @@ IPA.hbac.test_facet = function(spec) {
|
||||
}
|
||||
|
||||
command.on_success = function(data, text_status, xhr) {
|
||||
if (that.filter) that.filter.focus();
|
||||
that.load(data);
|
||||
};
|
||||
|
||||
@ -368,7 +359,7 @@ IPA.hbac.test_select_facet = function(spec) {
|
||||
td.append(' ');
|
||||
|
||||
that.external_text = $('<input/>', {
|
||||
name: 'external',
|
||||
name: id,
|
||||
focus: function() {
|
||||
that.external_radio.click();
|
||||
}
|
||||
@ -381,6 +372,13 @@ IPA.hbac.test_select_facet = function(spec) {
|
||||
that.create_buttons(footer);
|
||||
};
|
||||
|
||||
that.find = function() {
|
||||
var filter = that.filter.val();
|
||||
var state = {};
|
||||
state[that.entity.name+'-'+that.name+'-filter'] = filter;
|
||||
IPA.nav.push_state(state);
|
||||
};
|
||||
|
||||
that.get_selected_values = function() {
|
||||
var values = that.table.get_selected_values();
|
||||
if (values && values.length) return values;
|
||||
@ -393,8 +391,9 @@ IPA.hbac.test_select_facet = function(spec) {
|
||||
};
|
||||
|
||||
that.reset = function() {
|
||||
that.table.set_values([]);
|
||||
delete that.selected_values;
|
||||
if (that.external_radio) that.external_radio.attr('checked', false);
|
||||
if (that.external_text) that.external_text.val('');
|
||||
};
|
||||
|
||||
that.save = function(record) {
|
||||
@ -408,6 +407,25 @@ IPA.hbac.test_select_facet = function(spec) {
|
||||
}
|
||||
};
|
||||
|
||||
that.validate = function(record) {
|
||||
if (record[that.name]) return true;
|
||||
|
||||
var dialog = IPA.message_dialog({
|
||||
title: IPA.messages.dialogs.validation_title,
|
||||
message: IPA.messages.dialogs.validation_message
|
||||
});
|
||||
|
||||
dialog.on_ok = function() {
|
||||
var state = {};
|
||||
state[that.entity.name+'-facet'] = that.name;
|
||||
IPA.nav.push_state(state);
|
||||
};
|
||||
|
||||
dialog.open();
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
init();
|
||||
|
||||
return that;
|
||||
@ -475,9 +493,9 @@ IPA.hbac.test_rules_facet = function(spec) {
|
||||
};
|
||||
|
||||
that.reset = function() {
|
||||
that.table.set_values([]);
|
||||
delete that.selected_values;
|
||||
if (that.enabled) that.enabled.attr('checked', false);
|
||||
if (that.disabled) that.enabled.attr('checked', false);
|
||||
if (that.disabled) that.disabled.attr('checked', false);
|
||||
};
|
||||
|
||||
that.save = function(record) {
|
||||
@ -505,6 +523,8 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
|
||||
var init = function() {
|
||||
that.table.selectable = false;
|
||||
that.show_matched = true;
|
||||
that.show_unmatched = true;
|
||||
};
|
||||
|
||||
that.create_content = function(container) {
|
||||
@ -547,10 +567,15 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
|
||||
header.append(' ');
|
||||
|
||||
that.matched = $('<input/>', {
|
||||
that.matched_checkbox = $('<input/>', {
|
||||
id: 'hbactest-rules-matched',
|
||||
type: 'checkbox',
|
||||
name: 'matched'
|
||||
name: 'matched',
|
||||
checked: true,
|
||||
change: function() {
|
||||
that.show_matched = that.matched_checkbox.is(':checked');
|
||||
that.refresh();
|
||||
}
|
||||
}).appendTo(header);
|
||||
|
||||
$('<label/>', {
|
||||
@ -558,10 +583,15 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
text: IPA.messages.objects.hbactest.matched
|
||||
}).appendTo(header);
|
||||
|
||||
that.unmatched = $('<input/>', {
|
||||
that.unmatched_checkbox = $('<input/>', {
|
||||
id: 'hbactest-rules-unmatched',
|
||||
type: 'checkbox',
|
||||
name: 'disabled'
|
||||
name: 'disabled',
|
||||
checked: true,
|
||||
change: function() {
|
||||
that.show_unmatched = that.unmatched_checkbox.is(':checked');
|
||||
that.refresh();
|
||||
}
|
||||
}).appendTo(header);
|
||||
|
||||
$('<label/>', {
|
||||
@ -634,12 +664,26 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
};
|
||||
|
||||
that.reset = function() {
|
||||
that.test_result.text('');
|
||||
that.table.empty();
|
||||
that.table.set_values([]);
|
||||
delete that.data;
|
||||
that.show_matched = true;
|
||||
that.show_unmatched = true;
|
||||
if (that.matched_checkbox) that.matched_checkbox.attr('checked', true);
|
||||
if (that.unmatched_checkbox) that.unmatched_checkbox.attr('checked', true);
|
||||
that.refresh();
|
||||
};
|
||||
|
||||
that.refresh = function() {
|
||||
if (that.data) {
|
||||
var message = that.data.result.value ?
|
||||
IPA.messages.objects.hbactest.access_granted :
|
||||
IPA.messages.objects.hbactest.access_denied;
|
||||
that.test_result.text(message);
|
||||
|
||||
} else {
|
||||
that.test_result.text('');
|
||||
}
|
||||
|
||||
that.load(that.data);
|
||||
};
|
||||
|
||||
that.run = function() {
|
||||
@ -650,15 +694,19 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
|
||||
var facet = that.entity.get_facet('user');
|
||||
facet.save(options);
|
||||
if (!facet.validate(options)) return;
|
||||
|
||||
facet = that.entity.get_facet('targethost');
|
||||
facet.save(options);
|
||||
if (!facet.validate(options)) return;
|
||||
|
||||
facet = that.entity.get_facet('service');
|
||||
facet.save(options);
|
||||
if (!facet.validate(options)) return;
|
||||
|
||||
facet = that.entity.get_facet('sourcehost');
|
||||
facet.save(options);
|
||||
if (!facet.validate(options)) return;
|
||||
|
||||
facet = that.entity.get_facet('rules');
|
||||
facet.save(options);
|
||||
@ -666,12 +714,8 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
command.set_options(options);
|
||||
|
||||
command.on_success = function(data, text_status, xhr) {
|
||||
var message = data.result.value ?
|
||||
IPA.messages.objects.hbactest.access_granted :
|
||||
IPA.messages.objects.hbactest.access_denied;
|
||||
that.test_result.text(message);
|
||||
|
||||
that.load(data);
|
||||
that.data = data;
|
||||
that.refresh();
|
||||
};
|
||||
|
||||
command.execute();
|
||||
@ -682,7 +726,7 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
that.matched = {};
|
||||
|
||||
var matched = data.result.matched;
|
||||
if (matched) {
|
||||
if (that.show_matched && matched) {
|
||||
for (var i=0; i<matched.length; i++) {
|
||||
var pkey = matched[i];
|
||||
pkeys.push(pkey);
|
||||
@ -691,7 +735,7 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
}
|
||||
|
||||
var notmatched = data.result.notmatched;
|
||||
if (notmatched) {
|
||||
if (that.show_unmatched && notmatched) {
|
||||
for (i=0; i<notmatched.length; i++) {
|
||||
pkey = notmatched[i];
|
||||
pkeys.push(pkey);
|
||||
@ -702,6 +746,16 @@ IPA.hbac.test_run_facet = function(spec) {
|
||||
return pkeys;
|
||||
};
|
||||
|
||||
that.get_records_command_name = function() {
|
||||
if (that.show_matched && !that.show_unmatched) {
|
||||
return 'hbactest_matched';
|
||||
}
|
||||
if (!that.show_matched && that.show_unmatched) {
|
||||
return 'hbactest_unmatched';
|
||||
}
|
||||
return that.managed_entity_name+'_get_records';
|
||||
};
|
||||
|
||||
that.load_records = function(records) {
|
||||
var pkey_name = that.table.entity.metadata.primary_key;
|
||||
that.table.empty();
|
||||
|
@ -2,28 +2,136 @@
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 3,
|
||||
"count": 21,
|
||||
"result": [
|
||||
{
|
||||
"cn": [
|
||||
"allow_all"
|
||||
],
|
||||
"dn": "ipauniqueid=ca842a42-a445-11e0-87ff-525400b55a47,cn=hbac,dc=dev,dc=example,dc=com"
|
||||
"dn": "ipauniqueid=007ff62a-20fc-11e1-b5f6-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule1"
|
||||
"rule01"
|
||||
],
|
||||
"dn": "ipauniqueid=4ed8b682-edf511df-b3f78f4b-11cc007b,cn=hbac,dc=dev,dc=example,dc=com"
|
||||
"dn": "ipauniqueid=ce568648-211c-11e1-8846-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule2"
|
||||
"rule02"
|
||||
],
|
||||
"dn": "ipauniqueid=12e2e4ba-120d-11e1-bbf7-525400e135d8,cn=hbac,dc=dev,dc=example,dc=com"
|
||||
"dn": "ipauniqueid=d0133224-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule03"
|
||||
],
|
||||
"dn": "ipauniqueid=d21db45e-211c-11e1-bef8-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule04"
|
||||
],
|
||||
"dn": "ipauniqueid=d4209604-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule05"
|
||||
],
|
||||
"dn": "ipauniqueid=d59dba70-211c-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule06"
|
||||
],
|
||||
"dn": "ipauniqueid=d7d49c8c-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule07"
|
||||
],
|
||||
"dn": "ipauniqueid=da048e36-211c-11e1-a6a9-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule08"
|
||||
],
|
||||
"dn": "ipauniqueid=e15223c4-211c-11e1-b9de-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule09"
|
||||
],
|
||||
"dn": "ipauniqueid=e324f8c0-211c-11e1-9eb4-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule10"
|
||||
],
|
||||
"dn": "ipauniqueid=e5161178-211c-11e1-b2b4-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule11"
|
||||
],
|
||||
"dn": "ipauniqueid=e70cf4c4-211c-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule12"
|
||||
],
|
||||
"dn": "ipauniqueid=f18be298-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule13"
|
||||
],
|
||||
"dn": "ipauniqueid=f449a204-211c-11e1-aad4-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule14"
|
||||
],
|
||||
"dn": "ipauniqueid=f792fd84-211c-11e1-9cac-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule15"
|
||||
],
|
||||
"dn": "ipauniqueid=fef03790-211c-11e1-bd50-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule16"
|
||||
],
|
||||
"dn": "ipauniqueid=015f362a-211d-11e1-8e68-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule17"
|
||||
],
|
||||
"dn": "ipauniqueid=124d7690-211d-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule18"
|
||||
],
|
||||
"dn": "ipauniqueid=145e2d30-211d-11e1-b05c-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule19"
|
||||
],
|
||||
"dn": "ipauniqueid=17685668-211d-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
},
|
||||
{
|
||||
"cn": [
|
||||
"rule20"
|
||||
],
|
||||
"dn": "ipauniqueid=19537b06-211d-11e1-9569-000c29e9f1b6,cn=hbac,dc=example,dc=com"
|
||||
}
|
||||
],
|
||||
"summary": "3 HBAC rules matched",
|
||||
"summary": "21 HBAC rules matched",
|
||||
"truncated": false
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 3,
|
||||
"count": 20,
|
||||
"results": [
|
||||
{
|
||||
"error": null,
|
||||
@ -16,13 +16,20 @@
|
||||
"description": [
|
||||
"Allow all users to access any host from any host"
|
||||
],
|
||||
"dn": "ipauniqueid=ca842a42-a445-11e0-87ff-525400b55a47,cn=hbac,dc=dev,dc=example,dc=com",
|
||||
"dn": "ipauniqueid=007ff62a-20fc-11e1-b5f6-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"007ff62a-20fc-11e1-b5f6-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
@ -43,44 +50,34 @@
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule1"
|
||||
"rule01"
|
||||
],
|
||||
"description": [
|
||||
"Test Rule"
|
||||
"dn": "ipauniqueid=ce568648-211c-11e1-8846-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"dn": "ipauniqueid=4ed8b682-edf511df-b3f78f4b-11cc007b,cn=hbac,dc=dev,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"memberhost_host": [
|
||||
"dev.example.com"
|
||||
"ipauniqueid": [
|
||||
"ce568648-211c-11e1-8846-000c29e9f1b6"
|
||||
],
|
||||
"memberhost_hostgroup": [
|
||||
"production"
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"memberservice_hbacsvc": [
|
||||
"ftp",
|
||||
"sshd"
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"memberservice_hbacsvcgroup": [
|
||||
"sudo"
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"memberuser_group": [
|
||||
"editors"
|
||||
],
|
||||
"memberuser_user": [
|
||||
"admin",
|
||||
"test"
|
||||
],
|
||||
"sourcehost_host": [
|
||||
"dev.example.com"
|
||||
],
|
||||
"sourcehost_hostgroup": [
|
||||
"staging"
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule1"
|
||||
"value": "rule01"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
@ -89,33 +86,538 @@
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule2"
|
||||
"rule02"
|
||||
],
|
||||
"description": [
|
||||
"Test Rule"
|
||||
"dn": "ipauniqueid=d0133224-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"dn": "ipauniqueid=12e2e4ba-120d-11e1-bbf7-525400e135d8,cn=hbac,dc=dev,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
"TRUE"
|
||||
],
|
||||
"memberhost_host": [
|
||||
"test.example.com"
|
||||
"ipauniqueid": [
|
||||
"d0133224-211c-11e1-b881-000c29e9f1b6"
|
||||
],
|
||||
"memberhost_hostgroup": [
|
||||
"staging"
|
||||
],
|
||||
"memberuser_group": [
|
||||
"ipausers"
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehost_host": [
|
||||
"test.example.com"
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule2"
|
||||
"value": "rule02"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule03"
|
||||
],
|
||||
"dn": "ipauniqueid=d21db45e-211c-11e1-bef8-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d21db45e-211c-11e1-bef8-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule03"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule04"
|
||||
],
|
||||
"dn": "ipauniqueid=d4209604-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d4209604-211c-11e1-9192-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule04"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule05"
|
||||
],
|
||||
"dn": "ipauniqueid=d59dba70-211c-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d59dba70-211c-11e1-9ce3-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule05"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule06"
|
||||
],
|
||||
"dn": "ipauniqueid=d7d49c8c-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d7d49c8c-211c-11e1-9192-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule06"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule07"
|
||||
],
|
||||
"dn": "ipauniqueid=da048e36-211c-11e1-a6a9-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"da048e36-211c-11e1-a6a9-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule07"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule08"
|
||||
],
|
||||
"dn": "ipauniqueid=e15223c4-211c-11e1-b9de-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e15223c4-211c-11e1-b9de-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule08"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule09"
|
||||
],
|
||||
"dn": "ipauniqueid=e324f8c0-211c-11e1-9eb4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e324f8c0-211c-11e1-9eb4-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule09"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule10"
|
||||
],
|
||||
"dn": "ipauniqueid=e5161178-211c-11e1-b2b4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e5161178-211c-11e1-b2b4-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule10"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule11"
|
||||
],
|
||||
"dn": "ipauniqueid=e70cf4c4-211c-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e70cf4c4-211c-11e1-bb9f-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule11"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule12"
|
||||
],
|
||||
"dn": "ipauniqueid=f18be298-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"f18be298-211c-11e1-b881-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule12"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule13"
|
||||
],
|
||||
"dn": "ipauniqueid=f449a204-211c-11e1-aad4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"f449a204-211c-11e1-aad4-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule13"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule14"
|
||||
],
|
||||
"dn": "ipauniqueid=f792fd84-211c-11e1-9cac-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"f792fd84-211c-11e1-9cac-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule14"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule15"
|
||||
],
|
||||
"dn": "ipauniqueid=fef03790-211c-11e1-bd50-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"fef03790-211c-11e1-bd50-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule15"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule16"
|
||||
],
|
||||
"dn": "ipauniqueid=015f362a-211d-11e1-8e68-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"015f362a-211d-11e1-8e68-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule16"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule17"
|
||||
],
|
||||
"dn": "ipauniqueid=124d7690-211d-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"124d7690-211d-11e1-9ce3-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule17"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule18"
|
||||
],
|
||||
"dn": "ipauniqueid=145e2d30-211d-11e1-b05c-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"145e2d30-211d-11e1-b05c-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule18"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule19"
|
||||
],
|
||||
"dn": "ipauniqueid=17685668-211d-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"17685668-211d-11e1-bb9f-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule19"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -5,12 +5,30 @@
|
||||
"error": null,
|
||||
"matched": [
|
||||
"allow_all",
|
||||
"rule1"
|
||||
"rule01",
|
||||
"rule02",
|
||||
"rule03",
|
||||
"rule04",
|
||||
"rule05",
|
||||
"rule06",
|
||||
"rule07",
|
||||
"rule08",
|
||||
"rule09",
|
||||
"rule10"
|
||||
],
|
||||
"notmatched": [
|
||||
"rule2"
|
||||
"rule11",
|
||||
"rule12",
|
||||
"rule13",
|
||||
"rule14",
|
||||
"rule15",
|
||||
"rule16",
|
||||
"rule17",
|
||||
"rule18",
|
||||
"rule19",
|
||||
"rule20"
|
||||
],
|
||||
"summary": "Access granted: True",
|
||||
"value": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
408
install/ui/test/data/hbactest_matched.json
Normal file
408
install/ui/test/data/hbactest_matched.json
Normal file
@ -0,0 +1,408 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 11,
|
||||
"results": [
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"allow_all"
|
||||
],
|
||||
"description": [
|
||||
"Allow all users to access any host from any host"
|
||||
],
|
||||
"dn": "ipauniqueid=007ff62a-20fc-11e1-b5f6-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"007ff62a-20fc-11e1-b5f6-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "allow_all"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule01"
|
||||
],
|
||||
"dn": "ipauniqueid=ce568648-211c-11e1-8846-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"ce568648-211c-11e1-8846-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule01"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule02"
|
||||
],
|
||||
"dn": "ipauniqueid=d0133224-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d0133224-211c-11e1-b881-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule02"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule03"
|
||||
],
|
||||
"dn": "ipauniqueid=d21db45e-211c-11e1-bef8-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d21db45e-211c-11e1-bef8-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule03"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule04"
|
||||
],
|
||||
"dn": "ipauniqueid=d4209604-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d4209604-211c-11e1-9192-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule04"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule05"
|
||||
],
|
||||
"dn": "ipauniqueid=d59dba70-211c-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d59dba70-211c-11e1-9ce3-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule05"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule06"
|
||||
],
|
||||
"dn": "ipauniqueid=d7d49c8c-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"d7d49c8c-211c-11e1-9192-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule06"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule07"
|
||||
],
|
||||
"dn": "ipauniqueid=da048e36-211c-11e1-a6a9-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"da048e36-211c-11e1-a6a9-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule07"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule08"
|
||||
],
|
||||
"dn": "ipauniqueid=e15223c4-211c-11e1-b9de-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e15223c4-211c-11e1-b9de-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule08"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule09"
|
||||
],
|
||||
"dn": "ipauniqueid=e324f8c0-211c-11e1-9eb4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e324f8c0-211c-11e1-9eb4-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule09"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule10"
|
||||
],
|
||||
"dn": "ipauniqueid=e5161178-211c-11e1-b2b4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"hostcategory": [
|
||||
"all"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e5161178-211c-11e1-b2b4-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
],
|
||||
"servicecategory": [
|
||||
"all"
|
||||
],
|
||||
"sourcehostcategory": [
|
||||
"all"
|
||||
],
|
||||
"usercategory": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule10"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
249
install/ui/test/data/hbactest_unmatched.json
Normal file
249
install/ui/test/data/hbactest_unmatched.json
Normal file
@ -0,0 +1,249 @@
|
||||
{
|
||||
"error": null,
|
||||
"id": null,
|
||||
"result": {
|
||||
"count": 10,
|
||||
"results": [
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule11"
|
||||
],
|
||||
"dn": "ipauniqueid=e70cf4c4-211c-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"e70cf4c4-211c-11e1-bb9f-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule11"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule12"
|
||||
],
|
||||
"dn": "ipauniqueid=f18be298-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"f18be298-211c-11e1-b881-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule12"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule13"
|
||||
],
|
||||
"dn": "ipauniqueid=f449a204-211c-11e1-aad4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"f449a204-211c-11e1-aad4-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule13"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule14"
|
||||
],
|
||||
"dn": "ipauniqueid=f792fd84-211c-11e1-9cac-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"f792fd84-211c-11e1-9cac-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule14"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule15"
|
||||
],
|
||||
"dn": "ipauniqueid=fef03790-211c-11e1-bd50-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"fef03790-211c-11e1-bd50-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule15"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule16"
|
||||
],
|
||||
"dn": "ipauniqueid=015f362a-211d-11e1-8e68-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"015f362a-211d-11e1-8e68-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule16"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule17"
|
||||
],
|
||||
"dn": "ipauniqueid=124d7690-211d-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"124d7690-211d-11e1-9ce3-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule17"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule18"
|
||||
],
|
||||
"dn": "ipauniqueid=145e2d30-211d-11e1-b05c-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"145e2d30-211d-11e1-b05c-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule18"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule19"
|
||||
],
|
||||
"dn": "ipauniqueid=17685668-211d-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"17685668-211d-11e1-bb9f-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule19"
|
||||
},
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"accessruletype": [
|
||||
"allow"
|
||||
],
|
||||
"cn": [
|
||||
"rule20"
|
||||
],
|
||||
"dn": "ipauniqueid=19537b06-211d-11e1-9569-000c29e9f1b6,cn=hbac,dc=example,dc=com",
|
||||
"ipaenabledflag": [
|
||||
"FALSE"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"19537b06-211d-11e1-9569-000c29e9f1b6"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipahbacrule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "rule20"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -7,10 +7,87 @@
|
||||
{
|
||||
"error": null,
|
||||
"result": {
|
||||
"attributelevelrights": {
|
||||
"aci": "rscwo",
|
||||
"cmdcategory": "rscwo",
|
||||
"cn": "rscwo",
|
||||
"description": "rscwo",
|
||||
"externalhost": "rscwo",
|
||||
"externaluser": "rscwo",
|
||||
"hostcategory": "rscwo",
|
||||
"hostmask": "rscwo",
|
||||
"ipaenabledflag": "rscwo",
|
||||
"ipasudoopt": "rscwo",
|
||||
"ipasudorunas": "rscwo",
|
||||
"ipasudorunasextgroup": "rscwo",
|
||||
"ipasudorunasextuser": "rscwo",
|
||||
"ipasudorunasgroup": "rscwo",
|
||||
"ipasudorunasgroupcategory": "rscwo",
|
||||
"ipasudorunasusercategory": "rscwo",
|
||||
"ipauniqueid": "rsc",
|
||||
"memberallowcmd": "rscwo",
|
||||
"memberdenycmd": "rscwo",
|
||||
"memberhost": "rscwo",
|
||||
"memberuser": "rscwo",
|
||||
"nsaccountlock": "rscwo",
|
||||
"usercategory": "rscwo"
|
||||
},
|
||||
"cn": [
|
||||
"test"
|
||||
],
|
||||
"dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=dev,dc=example,dc=com"
|
||||
"dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=dev,dc=example,dc=com",
|
||||
"externalhost": [
|
||||
"external.example.com"
|
||||
],
|
||||
"externaluser": [
|
||||
"external"
|
||||
],
|
||||
"ipaenabledflag": [
|
||||
"TRUE"
|
||||
],
|
||||
"ipasudoopt": [
|
||||
"-H",
|
||||
"-b"
|
||||
],
|
||||
"ipasudorunas_user": [
|
||||
"admin"
|
||||
],
|
||||
"ipasudorunasgroup_group": [
|
||||
"admins"
|
||||
],
|
||||
"ipauniqueid": [
|
||||
"4fc57a02-f23311df-b268e50e-a3b3ef71"
|
||||
],
|
||||
"memberallowcmd_sudocmd": [
|
||||
"/usr/bin/less"
|
||||
],
|
||||
"memberallowcmd_sudocmdgroup": [
|
||||
"group1"
|
||||
],
|
||||
"memberdenycmd_sudocmd": [
|
||||
"/usr/bin/more"
|
||||
],
|
||||
"memberdenycmd_sudocmdgroup": [
|
||||
"group1",
|
||||
"group2"
|
||||
],
|
||||
"memberhost_host": [
|
||||
"dev.example.com"
|
||||
],
|
||||
"memberhost_hostgroup": [
|
||||
"production",
|
||||
"staging"
|
||||
],
|
||||
"memberuser_group": [
|
||||
"editors"
|
||||
],
|
||||
"memberuser_user": [
|
||||
"test"
|
||||
],
|
||||
"objectclass": [
|
||||
"ipaassociation",
|
||||
"ipasudorule"
|
||||
]
|
||||
},
|
||||
"summary": null,
|
||||
"value": "test"
|
||||
|
Loading…
Reference in New Issue
Block a user