Renamed hbac to hbacrule.

All references to hbac in the UI have been replaced with hbacrule.
This is to match the hbacrule plugin. The test data and templates
have been renamed as well.
This commit is contained in:
Endi S. Dewata authored and Adam Young committed 2011-01-11 21:33:40 -05:00
1 parent 409b6efa5f
commit 9d0dc89b03
27 files changed
+33 -33

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ app_DATA = \
jquery-ui.css \
certificate.js \
group.js \
hbac.js \
hbacrule.js \
hbacsvc.js \
hbacsvcgroup.js \
host.js \
@@ -20,28 +20,28 @@
/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */
function ipa_hbac() {
function ipa_hbacrule() {
var that = ipa_entity({
'name': 'hbac'
'name': 'hbacrule'
});
that.init = function() {
var dialog = ipa_hbac_add_dialog({
var dialog = ipa_hbacrule_add_dialog({
'name': 'add',
'title': 'Add New Rule'
});
that.add_dialog(dialog);
dialog.init();
var facet = ipa_hbac_search_facet({
var facet = ipa_hbacrule_search_facet({
'name': 'search',
'label': 'Search'
});
that.add_facet(facet);
facet = ipa_hbac_details_facet({
facet = ipa_hbacrule_details_facet({
'name': 'details',
'label': 'Details'
});
@@ -53,9 +53,9 @@ function ipa_hbac() {
return that;
}
IPA.add_entity(ipa_hbac());
IPA.add_entity(ipa_hbacrule());
function ipa_hbac_add_dialog(spec) {
function ipa_hbacrule_add_dialog(spec) {
spec = spec || {};
@@ -83,7 +83,7 @@ function ipa_hbac_add_dialog(spec) {
return that;
}
function ipa_hbac_search_facet(spec) {
function ipa_hbacrule_search_facet(spec) {
spec = spec || {};
@@ -126,7 +126,7 @@ function ipa_hbac_search_facet(spec) {
return that;
}
function ipa_hbac_details_facet(spec) {
function ipa_hbacrule_details_facet(spec) {
spec = spec || {};
@@ -140,11 +140,11 @@ function ipa_hbac_details_facet(spec) {
section = that.create_section({
'name': 'general',
'label': 'General',
'template': 'hbac-details-general.html #contents'
'template': 'hbacrule-details-general.html #contents'
});
} else {
section = ipa_hbac_details_general_section({
section = ipa_hbacrule_details_general_section({
'name': 'general',
'label': 'General'
});
@@ -160,7 +160,7 @@ function ipa_hbac_details_facet(spec) {
section = that.create_section({
'name': 'user',
'label': 'Who',
'template': 'hbac-details-user.html #contents'
'template': 'hbacrule-details-user.html #contents'
});
} else {
@@ -197,7 +197,7 @@ function ipa_hbac_details_facet(spec) {
section = that.create_section({
'name': 'host',
'label': 'Accessing',
'template': 'hbac-details-host.html #contents'
'template': 'hbacrule-details-host.html #contents'
});
} else {
@@ -234,7 +234,7 @@ function ipa_hbac_details_facet(spec) {
section = that.create_section({
'name': 'service',
'label': 'Via Service',
'template': 'hbac-details-service.html #contents'
'template': 'hbacrule-details-service.html #contents'
});
} else {
@@ -271,7 +271,7 @@ function ipa_hbac_details_facet(spec) {
section = that.create_section({
'name': 'sourcehost',
'label': 'From',
'template': 'hbac-details-sourcehost.html #contents'
'template': 'hbacrule-details-sourcehost.html #contents'
});
} else {
@@ -308,7 +308,7 @@ function ipa_hbac_details_facet(spec) {
section = that.create_section({
'name': 'accesstime',
'label': 'When',
'template': 'hbac-details-accesstime.html #contents'
'template': 'hbacrule-details-accesstime.html #contents'
});
} else {
@@ -318,7 +318,7 @@ function ipa_hbac_details_facet(spec) {
});
}
section.add_field(ipa_hbac_accesstime_widget({
section.add_field(ipa_hbacrule_accesstime_widget({
'id': 'accesstime',
'name': 'accesstime', 'label': 'Access Time',
'text': 'Rule applies when access is being requested at:',
@@ -523,7 +523,7 @@ function ipa_hbac_details_facet(spec) {
return;
}
//alert(JSON.stringify(batch.to_json()));
alert(JSON.stringify(batch.to_json()));
batch.execute();
};
@@ -538,7 +538,7 @@ function ipa_hbac_details_facet(spec) {
return that;
}
function ipa_hbac_details_general_section(spec){
function ipa_hbacrule_details_general_section(spec){
spec = spec || {};
@@ -679,7 +679,7 @@ function ipa_hbac_details_general_section(spec){
return that;
}
function ipa_hbac_accesstime_widget(spec) {
function ipa_hbacrule_accesstime_widget(spec) {
spec = spec || {};
+1 -1
View File
@@ -23,7 +23,7 @@
<script type="text/javascript" src="certificate.js"></script>
<script type="text/javascript" src="user.js"></script>
<script type="text/javascript" src="group.js"></script>
<script type="text/javascript" src="hbac.js"></script>
<script type="text/javascript" src="hbacrule.js"></script>
<script type="text/javascript" src="hbacsvc.js"></script>
<script type="text/javascript" src="hbacsvcgroup.js"></script>
<script type="text/javascript" src="host.js"></script>
+6 -6
View File
@@ -7,12 +7,12 @@ SUBDIRS = \
appdir = $(IPA_DATA_DIR)/static/layouts/default
app_DATA = \
hbac-details-accesstime.html \
hbac-details-general.html \
hbac-details-host.html \
hbac-details-service.html \
hbac-details-sourcehost.html \
hbac-details-user.html \
hbacrule-details-accesstime.html \
hbacrule-details-general.html \
hbacrule-details-host.html \
hbacrule-details-service.html \
hbacrule-details-sourcehost.html \
hbacrule-details-user.html \
sudorule-details-general.html \
sudorule-group-dialog.html \
sudorule-host-dialog.html \
+4 -4
View File
@@ -3132,7 +3132,7 @@
],
"uuid_attribute": "ipauniqueid"
},
"hbac": {
"hbacrule": {
"aciattrs": [
"accessruletype",
"accesstime",
@@ -3169,7 +3169,7 @@
]
},
"bindable": false,
"container_dn": "cn=hbac",
"container_dn": "cn=hbacrules",
"default_attributes": [
"cn",
"accessruletype",
@@ -3208,7 +3208,7 @@
"remove_user",
"show"
],
"name": "hbac",
"name": "hbacrule",
"object_class": [
"ipaassociation",
"ipahbacrule"
@@ -7833,7 +7833,7 @@
"container_configs": "cn=configs,cn=policies",
"container_dns": "cn=dns",
"container_group": "cn=groups,cn=accounts",
"container_hbac": "cn=hbac",
"container_hbacrule": "cn=hbacrules",
"container_hbacservice": "cn=hbacservices,cn=accounts",
"container_hbacservicegroup": "cn=hbacservicegroups,cn=accounts",
"container_host": "cn=computers,cn=accounts",
+1 -1
View File
@@ -34,7 +34,7 @@ var admin_tab_set = [
]},
{name:'policy', children:[
{name:'dnszone', entity:'dnszone'},
{name:'hbac', entity:'hbac', children:[
{name:'hbacrule', entity:'hbacrule', children:[
{name:'hbacsvc', entity:'hbacsvc'},
{name:'hbacsvcgroup', entity:'hbacsvcgroup'}
]},