From 775fc23738d8a882bdd9cff9064b50594901e518 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 17 Nov 2010 22:15:09 -0500 Subject: batch init this batches together the calls to json_metadata, i18n_messages, and user-find [whoami] tostreamline the init process, and also allow us to add a call to enumerate the plugins. --- install/static/ipa.js | 22 +- install/static/test/data/batch.json | 4179 +++++++++++++++++++++++++++ install/static/test/data/i18n_messages.json | 37 + install/static/test/data/json_metadata.json | 800 ++--- install/static/webui.js | 15 +- ipalib/plugins/internal.py | 71 +- 6 files changed, 4535 insertions(+), 589 deletions(-) create mode 100644 install/static/test/data/batch.json create mode 100644 install/static/test/data/i18n_messages.json diff --git a/install/static/ipa.js b/install/static/ipa.js index 6ba8b67ec..9b0106b92 100644 --- a/install/static/ipa.js +++ b/install/static/ipa.js @@ -21,7 +21,6 @@ /*global $:true, location:true */ -/*Forward defined due to circular dependency with IPA.*/ var IPA = ( function () { var that = { @@ -34,8 +33,6 @@ var IPA = ( function () { that.json_url = 'test/data' } - - that.ajax_options = { type: 'POST', contentType: 'application/json', @@ -46,6 +43,8 @@ var IPA = ( function () { that.messages = {}; that.metadata = {}; + that.whoami = {}; + that.entities = []; that.entities_by_name = {}; @@ -76,10 +75,21 @@ var IPA = ( function () { $.ajaxSetup(that.ajax_options); - ipa_cmd('json_metadata', [], {}, + + var startup_batch = + [ + {"method":"json_metadata","params":[[],{}]}, + {"method":"i18n_messages","params":[[],{}]}, + {"method":"user_find","params":[[],{ + "whoami":"true","all":"true"}]} + ]; + + + ipa_cmd('batch', startup_batch, {}, function (data, text_status, xhr) { - that.metadata = data.result.metadata; - that.messages = data.result.messages; + that.metadata = data.result.results[0].metadata; + that.messages = data.result.results[1].messages; + that.whoami = data.result.results[2].result[0]; if (on_success) { on_success(data, text_status, xhr); } diff --git a/install/static/test/data/batch.json b/install/static/test/data/batch.json new file mode 100644 index 000000000..15a59e3c9 --- /dev/null +++ b/install/static/test/data/batch.json @@ -0,0 +1,4179 @@ +{ + "error": null, + "id": 1, + "result": { + "count": 3, + "results": [ + { + "error": null, + "metadata": { + "aci": { + "__base64__": "" + }, + "automountkey": { + "attribute_members": {}, + "container_dn": "cn=automount", + "default_attributes": [ + "automountkey", + "automountinformation", + "description" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Automount Keys", + "methods": [ + "add", + "del", + "find", + "mod", + "show" + ], + "name": "automountkey", + "object_class": [ + "automount" + ], + "object_class_config": null, + "object_name": "automount key", + "object_name_plural": "automount keys", + "parent_object": "automountmap", + "primary_key": "automountkey", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "key", + "cli_short_name": null, + "default": null, + "doc": "Automount key name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Key", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "automountkey", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "info", + "cli_short_name": null, + "default": null, + "doc": "Mount information", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Mount information", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "automountinformation", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "" + }, + "automountlocation": { + "attribute_members": {}, + "container_dn": "cn=automount", + "default_attributes": [ + "cn" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Automount", + "methods": [ + "add", + "del", + "find", + "import", + "show", + "tofiles" + ], + "name": "automountlocation", + "object_class": [ + "nscontainer" + ], + "object_class_config": null, + "object_name": "automount location", + "object_name_plural": "automount locations", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "location", + "cli_short_name": null, + "default": null, + "doc": "Automount location name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Location", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + } + ], + "uuid_attribute": "" + }, + "automountmap": { + "attribute_members": {}, + "container_dn": "cn=automount", + "default_attributes": [ + "automountmapname", + "description" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Automount Maps", + "methods": [ + "add", + "add_indirect", + "del", + "find", + "mod", + "show" + ], + "name": "automountmap", + "object_class": [ + "automountmap" + ], + "object_class_config": null, + "object_name": "automount map", + "object_name_plural": "automount maps", + "parent_object": "automountlocation", + "primary_key": "automountmapname", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "map", + "cli_short_name": null, + "default": null, + "doc": "Automount map name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Map", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "automountmapname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "" + }, + "config": { + "attribute_members": {}, + "container_dn": "", + "default_attributes": [ + "ipamaxusernamelength", + "ipahomesrootdir", + "ipadefaultloginshell", + "ipadefaultprimarygroup", + "ipadefaultdomain", + "ipasearchtimelimit", + "ipasearchrecordslimit", + "ipausersearchfields", + "ipagroupsearchfields", + "ipamigrationenabled", + "ipacertificatesubjectbase" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Configuration", + "methods": [ + "mod", + "show" + ], + "name": "config", + "object_class": [], + "object_class_config": null, + "object_name": "configuration options", + "object_name_plural": "entries", + "parent_object": "", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "maxusername", + "cli_short_name": null, + "default": null, + "doc": "Max username length", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Max username length", + "maxvalue": null, + "minvalue": 1, + "multivalue": false, + "name": "ipamaxusernamelength", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "homedirectory", + "cli_short_name": null, + "default": null, + "doc": "Default location of home directories", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Home directory base", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipahomesrootdir", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "defaultshell", + "cli_short_name": null, + "default": null, + "doc": "Default shell for new users", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Default shell", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipadefaultloginshell", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "defaultgroup", + "cli_short_name": null, + "default": null, + "doc": "Default group for new users", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Default users group", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipadefaultprimarygroup", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "emaildomain", + "cli_short_name": null, + "default": null, + "doc": "Default e-mail domain new users", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Default e-mail domain", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipadefaultemaildomain", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "searchtimelimit", + "cli_short_name": null, + "default": null, + "doc": "Max. amount of time (sec.) for a search (-1 is unlimited)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Search time limit", + "maxvalue": null, + "minvalue": -1, + "multivalue": false, + "name": "ipasearchtimelimit", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "searchrecordslimit", + "cli_short_name": null, + "default": null, + "doc": "Max. number of records to search (-1 is unlimited)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Search size limit", + "maxvalue": null, + "minvalue": -1, + "multivalue": false, + "name": "ipasearchrecordslimit", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "usersearch", + "cli_short_name": null, + "default": null, + "doc": "A comma-separated list of fields to search when searching for users", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "User search fields", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipausersearchfields", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "groupsearch", + "cli_short_name": null, + "default": null, + "doc": "A comma-separated list of fields to search when searching for groups", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Group search fields", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipagroupsearchfields", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Bool", + "cli_name": "enable_migration", + "cli_short_name": null, + "default": null, + "doc": "Enable migration mode", + "exclude": null, + "falsehoods": [ + 0, + "0", + "false" + ], + "flags": [], + "hint": null, + "include": null, + "label": "Migration mode", + "multivalue": false, + "name": "ipamigrationenabled", + "primary_key": false, + "query": false, + "required": false, + "truths": [ + "1", + 1, + "true" + ], + "type": "bool" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "subject", + "cli_short_name": null, + "default": null, + "doc": "Base for certificate subjects (OU=Test,O=Example)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Certificate Subject base", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipacertificatesubjectbase", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "" + }, + "cosentry": { + "attribute_members": {}, + "container_dn": "cn=costemplates,cn=accounts", + "default_attributes": [ + "cn", + "cospriority", + "krbpwdpolicyreference" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "", + "methods": [ + "add", + "del", + "find", + "mod", + "show" + ], + "name": "cosentry", + "object_class": [ + "top", + "costemplate", + "extensibleobject", + "krbcontainer" + ], + "object_class_config": null, + "object_name": "entry", + "object_name_plural": "entries", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "cn", + "cli_short_name": null, + "default": null, + "doc": "", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "krbpwdpolicyreference", + "cli_short_name": null, + "default": null, + "doc": "", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "krbpwdpolicyreference", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "cospriority", + "cli_short_name": null, + "default": null, + "doc": "", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "", + "maxvalue": null, + "minvalue": 0, + "multivalue": false, + "name": "cospriority", + "primary_key": false, + "query": false, + "required": true, + "type": "int" + } + ], + "uuid_attribute": "" + }, + "dns": { + "default_attributes": [ + "idnsname", + "idnszoneactive", + "idnssoamname", + "idnssoarname", + "idnssoaserial", + "idnssoarefresh", + "idnssoaretry", + "idnssoaexpire", + "idnssoaminimum" + ], + "label": "DNS", + "methods": [ + "add", + "del", + "find", + "mod", + "show" + ], + "name": "dns", + "primary_key": "idnsname", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Zone name (FQDN)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Zone", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "idnsname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name_server", + "cli_short_name": null, + "default": null, + "doc": "Authoritative name server", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Authoritative name server", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "idnssoamname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "admin_email", + "cli_short_name": null, + "default": null, + "doc": "administrator e-mail address", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "administrator e-mail address", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "idnssoarname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "serial", + "cli_short_name": null, + "default": null, + "doc": "SOA serial", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "SOA serial", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "idnssoaserial", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "refresh", + "cli_short_name": null, + "default": null, + "doc": "SOA refresh", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "SOA refresh", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "idnssoarefresh", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "retry", + "cli_short_name": null, + "default": null, + "doc": "SOA retry", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "SOA retry", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "idnssoaretry", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "expire", + "cli_short_name": null, + "default": null, + "doc": "SOA expire", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "SOA expire", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "idnssoaexpire", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "minimum", + "cli_short_name": null, + "default": null, + "doc": "SOA minimum", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "SOA minimum", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "idnssoaminimum", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "ttl", + "cli_short_name": null, + "default": null, + "doc": "SOA time to live", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "SOA time to live", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "dnsttl", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "class", + "cli_short_name": null, + "default": null, + "doc": "SOA class", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "SOA class", + "multivalue": false, + "name": "dnsclass", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "IN", + "CS", + "CH", + "HS" + ] + }, + { + "attribute": false, + "autofill": true, + "class": "Flag", + "cli_name": "allow_dynupdate", + "cli_short_name": null, + "default": false, + "doc": "allow dynamic update?", + "exclude": null, + "falsehoods": [ + 0, + "0", + "false" + ], + "flags": [], + "hint": null, + "include": null, + "label": "allow dynamic update?", + "multivalue": false, + "name": "idnsallowdynupdate", + "primary_key": false, + "query": false, + "required": true, + "truths": [ + "1", + 1, + "true" + ], + "type": "bool" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "update_policy", + "cli_short_name": null, + "default": null, + "doc": "BIND update policy", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "BIND update policy", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "idnsupdatepolicy", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ] + }, + "group": { + "attribute_members": { + "member": [ + "user", + "group" + ], + "memberindirect": [ + "user", + "group", + "netgroup", + "rolegroup", + "taskgroup" + ], + "memberof": [ + "group", + "netgroup", + "rolegroup", + "taskgroup" + ] + }, + "container_dn": "cn=groups,cn=accounts", + "default_attributes": [ + "cn", + "description", + "gidnumber", + "member", + "memberof", + "memberindirect" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "User Groups", + "methods": [ + "add", + "add_member", + "del", + "detach", + "find", + "mod", + "remove_member", + "show" + ], + "name": "group", + "object_class": [ + "ipausergroup" + ], + "object_class_config": "ipagroupobjectclasses", + "object_name": "group", + "object_name_plural": "groups", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Group name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Group name", + "length": null, + "maxlength": 255, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": "^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,252}[a-zA-Z0-9_.$-]?$", + "pattern_errmsg": "may only include letters, numbers, _, -, . and $", + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Group description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "gid", + "cli_short_name": null, + "default": null, + "doc": "GID (use this option to set it manually)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "GID", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "gidnumber", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "hbac": { + "attribute_members": { + "memberhost": [ + "host", + "hostgroup" + ], + "memberservice": [ + "hbacsvc", + "hbacsvcgroup" + ], + "memberuser": [ + "user", + "group" + ], + "sourcehost": [ + "host", + "hostgroup" + ] + }, + "container_dn": "cn=hbac", + "default_attributes": [ + "cn", + "accessruletype", + "ipaenabledflag", + "accesstime", + "description", + "usercategory", + "hostcategory", + "sourcehostcategory", + "servicecategory", + "ipaenabledflag", + "memberuser", + "sourcehost", + "memberhost", + "memberservice", + "memberhostgroup" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "HBAC", + "methods": [ + "add", + "add_accesstime", + "add_host", + "add_service", + "add_sourcehost", + "add_user", + "del", + "disable", + "enable", + "find", + "mod", + "remove_accesstime", + "remove_host", + "remove_service", + "remove_sourcehost", + "remove_user", + "show" + ], + "name": "hbac", + "object_class": [ + "ipaassociation", + "ipahbacrule" + ], + "object_class_config": null, + "object_name": "HBAC rule", + "object_name_plural": "HBAC rules", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "ipauniqueid", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Rule name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Rule name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "type", + "cli_short_name": null, + "default": null, + "doc": "Rule type (allow or deny)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Rule type", + "multivalue": false, + "name": "accessruletype", + "primary_key": false, + "query": false, + "required": true, + "type": "unicode", + "values": [ + "allow", + "deny" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "usercat", + "cli_short_name": null, + "default": null, + "doc": "User category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "User category", + "multivalue": false, + "name": "usercategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "hostcat", + "cli_short_name": null, + "default": null, + "doc": "Host category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Host category", + "multivalue": false, + "name": "hostcategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "srchostcat", + "cli_short_name": null, + "default": null, + "doc": "Source host category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Source host category", + "multivalue": false, + "name": "sourcehostcategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "servicecat", + "cli_short_name": null, + "default": null, + "doc": "Service category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Service category", + "multivalue": false, + "name": "servicecategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "AccessTime", + "cli_name": "time", + "cli_short_name": null, + "default": null, + "doc": "Access time", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Access time", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "accesstime", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": true, + "class": "Flag", + "cli_name": "ipaenabledflag", + "cli_short_name": null, + "default": false, + "doc": "Enabled", + "exclude": null, + "falsehoods": [ + 0, + "0", + "false" + ], + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Enabled", + "multivalue": false, + "name": "ipaenabledflag", + "primary_key": false, + "query": false, + "required": false, + "truths": [ + "1", + 1, + "true" + ], + "type": "bool" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberuser_user", + "cli_short_name": null, + "default": null, + "doc": "Users", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Users", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberuser_user", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberhost_host", + "cli_short_name": null, + "default": null, + "doc": "Hosts", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Hosts", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberhost_host", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberhost_hostgroup", + "cli_short_name": null, + "default": null, + "doc": "Host Groups", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Host Groups", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberhost_hostgroup", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "sourcehost_host", + "cli_short_name": null, + "default": null, + "doc": "Source hosts", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Source hosts", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "sourcehost_host", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberservice_service", + "cli_short_name": null, + "default": null, + "doc": "Services", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Services", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberservice_service", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberservice_servicegroup", + "cli_short_name": null, + "default": null, + "doc": "Service Groups", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Service Groups", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberservice_servicegroup", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "hbacsvc": { + "attribute_members": {}, + "container_dn": "cn=hbacservices,cn=accounts", + "default_attributes": [ + "cn", + "description", + "memberindirect" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Services", + "methods": [ + "add", + "del", + "find", + "mod", + "show" + ], + "name": "hbacsvc", + "object_class": [ + "ipaobject", + "ipahbacservice" + ], + "object_class_config": null, + "object_name": "hbacsvc", + "object_name_plural": "hbacsvcs", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "service", + "cli_short_name": null, + "default": null, + "doc": "HBAC Service", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Service name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Description of service", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "hbacsvcgroup": { + "attribute_members": { + "member": [ + "hbacsvc" + ] + }, + "container_dn": "cn=hbacservicegroups,cn=accounts", + "default_attributes": [ + "cn", + "description", + "member" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "HBAC Service Groups", + "methods": [ + "add", + "add_member", + "del", + "find", + "mod", + "remove_member", + "show" + ], + "name": "hbacsvcgroup", + "object_class": [ + "ipaobject", + "ipahbacservicegroup" + ], + "object_class_config": null, + "object_name": "hbacsvcgroup", + "object_name_plural": "hbacsvcgroups", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Service group name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Service group name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "HBAC service group description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "host": { + "attribute_members": { + "enrolledby": [ + "user" + ], + "memberof": [ + "hostgroup", + "netgroup", + "rolegroup" + ] + }, + "container_dn": "cn=computers,cn=accounts", + "default_attributes": [ + "fqdn", + "description", + "l", + "nshostlocation", + "krbprincipalname", + "nshardwareplatform", + "nsosversion", + "usercertificate", + "memberof", + "krblastpwdchange" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Hosts", + "methods": [ + "add", + "del", + "disable", + "find", + "mod", + "show" + ], + "name": "host", + "object_class": [ + "ipaobject", + "nshost", + "ipahost", + "pkiuser", + "ipaservice" + ], + "object_class_config": null, + "object_name": "host", + "object_name_plural": "hosts", + "parent_object": "", + "primary_key": "fqdn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "hostname", + "cli_short_name": null, + "default": null, + "doc": "Host name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Host name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "fqdn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "A description of this host", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "locality", + "cli_short_name": null, + "default": null, + "doc": "Host locality (e.g. \"Baltimore, MD\")", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Locality", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "l", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "location", + "cli_short_name": null, + "default": null, + "doc": "Host location (e.g. \"Lab 2\")", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Location", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "nshostlocation", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "platform", + "cli_short_name": null, + "default": null, + "doc": "Host hardware platform (e.g. \"Lenovo T61\")", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Platform", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "nshardwareplatform", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "os", + "cli_short_name": null, + "default": null, + "doc": "Host operating system and version (e.g. \"Fedora 9\")", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Operating system", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "nsosversion", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "password", + "cli_short_name": null, + "default": null, + "doc": "Password used in bulk enrollment", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "User password", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "userpassword", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": true, + "class": "Flag", + "cli_name": "random", + "cli_short_name": null, + "default": false, + "doc": "Generate a random password to be used in bulk enrollment", + "exclude": null, + "falsehoods": [ + 0, + "0", + "false" + ], + "flags": [ + "no_search" + ], + "hint": null, + "include": null, + "label": "", + "multivalue": false, + "name": "random", + "primary_key": false, + "query": false, + "required": false, + "truths": [ + "1", + 1, + "true" + ], + "type": "bool" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "randompassword", + "cli_short_name": null, + "default": null, + "doc": "Random password", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Random password", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "randompassword", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Bytes", + "cli_name": "certificate", + "cli_short_name": null, + "default": null, + "doc": "Base-64 encoded server certificate", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Certificate", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "usercertificate", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "str" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "krbprincipalname", + "cli_short_name": null, + "default": null, + "doc": "Principal name", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Principal name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "krbprincipalname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "hostgroup": { + "attribute_members": { + "member": [ + "host", + "hostgroup" + ], + "memberindirect": [ + "host", + "hostgroup" + ], + "memberof": [ + "hostgroup" + ] + }, + "container_dn": "cn=hostgroups,cn=accounts", + "default_attributes": [ + "cn", + "description", + "member", + "memberof", + "memberindirect" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Host Groups", + "methods": [ + "add", + "add_member", + "del", + "find", + "mod", + "remove_member", + "show" + ], + "name": "hostgroup", + "object_class": [ + "ipaobject", + "ipahostgroup" + ], + "object_class_config": null, + "object_name": "hostgroup", + "object_name_plural": "hostgroups", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Name of host-group", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Host-group", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "A description of this host-group", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "krbtpolicy": { + "attribute_members": {}, + "container_dn": "cn=AYOUNG.BOSTON.DEVEL.REDHAT.COM,cn=kerberos", + "default_attributes": [ + "krbmaxticketlife", + "krbmaxrenewableage" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Kerberos Ticket Policy", + "methods": [ + "mod", + "reset", + "show" + ], + "name": "krbtpolicy", + "object_class": [], + "object_class_config": null, + "object_name": "kerberos ticket policy settings", + "object_name_plural": "entries", + "parent_object": "", + "primary_key": "uid", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "user", + "cli_short_name": null, + "default": null, + "doc": "Manage ticket policy for specific user", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "User name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "uid", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "maxlife", + "cli_short_name": null, + "default": null, + "doc": "Maximum ticket life (seconds)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Max life", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "krbmaxticketlife", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "maxrenew", + "cli_short_name": null, + "default": null, + "doc": "Maximum renewable age (seconds)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Max renew", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "krbmaxrenewableage", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + } + ], + "uuid_attribute": "" + }, + "netgroup": { + "attribute_members": { + "member": [ + "netgroup" + ], + "memberhost": [ + "host", + "hostgroup" + ], + "memberindirect": [ + "netgroup" + ], + "memberof": [ + "netgroup" + ], + "memberuser": [ + "user", + "group" + ] + }, + "container_dn": "cn=ng,cn=alt", + "default_attributes": [ + "cn", + "description", + "memberof", + "externalhost", + "nisdomainname", + "memberuser", + "memberhost", + "member", + "memberindirect", + "usercategory", + "hostcategory" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Net Groups", + "methods": [ + "add", + "add_member", + "del", + "find", + "mod", + "remove_member", + "show" + ], + "name": "netgroup", + "object_class": [ + "ipaobject", + "ipaassociation", + "ipanisnetgroup" + ], + "object_class_config": null, + "object_name": "netgroup", + "object_name_plural": "netgroups", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "ipauniqueid", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Netgroup name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Netgroup name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Netgroup description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "nisdomain", + "cli_short_name": null, + "default": null, + "doc": "NIS domain name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "NIS domain name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "nisdomainname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "uuid", + "cli_short_name": null, + "default": null, + "doc": "IPA unique ID", + "exclude": null, + "flags": [ + "no_update", + "no_create" + ], + "hint": null, + "include": null, + "label": "IPA unique ID", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "ipauniqueid", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "usercat", + "cli_short_name": null, + "default": null, + "doc": "User category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "User category", + "multivalue": false, + "name": "usercategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "hostcat", + "cli_short_name": null, + "default": null, + "doc": "Host category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Host category", + "multivalue": false, + "name": "hostcategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + } + ], + "uuid_attribute": "ipauniqueid" + }, + "pwpolicy": { + "attribute_members": {}, + "container_dn": "cn=AYOUNG.BOSTON.DEVEL.REDHAT.COM,cn=kerberos", + "default_attributes": [ + "cn", + "cospriority", + "krbmaxpwdlife", + "krbminpwdlife", + "krbpwdhistorylength", + "krbpwdmindiffchars", + "krbpwdminlength", + "krbpwdmaxfailure", + "krbpwdfailurecountinterval", + "krbpwdlockoutduration" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Password Policy", + "methods": [ + "add", + "del", + "find", + "mod", + "show" + ], + "name": "pwpolicy", + "object_class": [ + "top", + "nscontainer", + "krbpwdpolicy" + ], + "object_class_config": null, + "object_name": "password policy", + "object_name_plural": "password policies", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "group", + "cli_short_name": null, + "default": null, + "doc": "Manage password policy for specific group", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Group", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "maxlife", + "cli_short_name": null, + "default": null, + "doc": "Maximum password lifetime (in days)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Max lifetime (days)", + "maxvalue": null, + "minvalue": 0, + "multivalue": false, + "name": "krbmaxpwdlife", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "minlife", + "cli_short_name": null, + "default": null, + "doc": "Minimum password lifetime (in hours)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Min lifetime (hours)", + "maxvalue": null, + "minvalue": 0, + "multivalue": false, + "name": "krbminpwdlife", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "history", + "cli_short_name": null, + "default": null, + "doc": "Password history size", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "History size", + "maxvalue": null, + "minvalue": 0, + "multivalue": false, + "name": "krbpwdhistorylength", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "minclasses", + "cli_short_name": null, + "default": null, + "doc": "Minimum number of character classes", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Character classes", + "maxvalue": 5, + "minvalue": 0, + "multivalue": false, + "name": "krbpwdmindiffchars", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "minlength", + "cli_short_name": null, + "default": null, + "doc": "Minimum length of password", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Min length", + "maxvalue": null, + "minvalue": 0, + "multivalue": false, + "name": "krbpwdminlength", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Int", + "cli_name": "priority", + "cli_short_name": null, + "default": null, + "doc": "Priority of the policy (higher number means lower priority", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Priority", + "maxvalue": null, + "minvalue": 0, + "multivalue": false, + "name": "cospriority", + "primary_key": false, + "query": false, + "required": true, + "type": "int" + } + ], + "uuid_attribute": "" + }, + "rolegroup": { + "attribute_members": { + "member": [ + "user", + "group", + "host", + "hostgroup" + ], + "memberindirect": [ + "user", + "group", + "host", + "hostgroup" + ], + "memberof": [ + "taskgroup" + ] + }, + "container_dn": "cn=rolegroups,cn=accounts", + "default_attributes": [ + "cn", + "description", + "member", + "memberof", + "memberindirect" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Role Groups", + "methods": [ + "add", + "add_member", + "del", + "find", + "mod", + "remove_member", + "show" + ], + "name": "rolegroup", + "object_class": [ + "groupofnames", + "nestedgroup" + ], + "object_class_config": null, + "object_name": "rolegroup", + "object_name_plural": "rolegroups", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Role-group name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Role-group name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "A description of this role-group", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + } + ], + "uuid_attribute": "" + }, + "service": { + "attribute_members": { + "managedby": [ + "host" + ] + }, + "container_dn": "cn=services,cn=accounts", + "default_attributes": [ + "krbprincipalname", + "usercertificate", + "managedby", + "krblastpwdchange" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Services", + "methods": [ + "add", + "add_host", + "del", + "disable", + "find", + "mod", + "remove_host", + "show" + ], + "name": "service", + "object_class": [ + "krbprincipal", + "krbprincipalaux", + "krbticketpolicyaux", + "ipaobject", + "ipaservice", + "pkiuser" + ], + "object_class_config": null, + "object_name": "service", + "object_name_plural": "services", + "parent_object": "", + "primary_key": "krbprincipalname", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "principal", + "cli_short_name": null, + "default": null, + "doc": "Service principal", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Principal", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "krbprincipalname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Bytes", + "cli_name": "certificate", + "cli_short_name": null, + "default": null, + "doc": "Base-64 encoded server certificate", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Certificate", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "usercertificate", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "str" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "sudocmd": { + "attribute_members": {}, + "container_dn": "cn=sudocmds,cn=accounts", + "default_attributes": [ + "sudocmd", + "description" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "SudoCmds", + "methods": [ + "add", + "del", + "find", + "mod", + "show" + ], + "name": "sudocmd", + "object_class": [ + "ipaobject", + "ipasudocmd" + ], + "object_class_config": null, + "object_name": "sudocmd", + "object_name_plural": "sudocmds", + "parent_object": "", + "primary_key": "sudocmd", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "command", + "cli_short_name": null, + "default": null, + "doc": "Sudo Command", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Sudo Command", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "sudocmd", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "A description of this command", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "sudocmdgroup": { + "attribute_members": { + "member": [ + "sudocmd", + "sudocmdgroup" + ], + "memberindirect": [ + "sudocmd", + "sudocmdgroup" + ], + "memberof": [ + "sudocmdgroup" + ] + }, + "container_dn": "cn=sudocmdgroups,cn=accounts", + "default_attributes": [ + "cn", + "description", + "member", + "memberof", + "memberindirect" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Sudo Command Groups", + "methods": [ + "add", + "add_member", + "del", + "find", + "mod", + "remove_member", + "show" + ], + "name": "sudocmdgroup", + "object_class": [ + "ipaobject", + "ipasudocmdgrp" + ], + "object_class_config": null, + "object_name": "sudocmdgroup", + "object_name_plural": "sudocmdgroups", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Sudo Command Group name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Sudo Command Group name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Group description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "membercmd_sudocmd", + "cli_short_name": null, + "default": null, + "doc": "Commands", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Commands", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "membercmd_sudocmd", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "membercmd_sudocmdgroup", + "cli_short_name": null, + "default": null, + "doc": "Sudo Command Groups", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Sudo Command Groups", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "membercmd_sudocmdgroup", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "sudorule": { + "attribute_members": { + "memberallowcmd": [ + "sudocmd", + "sudocmdgroup" + ], + "memberdenycmd": [ + "sudocmd", + "sudocmdgroup" + ], + "memberhost": [ + "host", + "hostgroup" + ], + "memberuser": [ + "user", + "group" + ] + }, + "container_dn": "cn=sudorules", + "default_attributes": [ + "cn", + "description" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "SudoRule", + "methods": [ + "add", + "add_allow_command", + "add_deny_command", + "add_host", + "add_user", + "del", + "find", + "mod", + "remove_allow_command", + "remove_deny_command", + "remove_host", + "remove_user", + "show" + ], + "name": "sudorule", + "object_class": [ + "ipaassociation", + "ipasudorule" + ], + "object_class_config": null, + "object_name": "Sudo Rule", + "object_name_plural": "Sudo Rules", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "ipauniqueid", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Rule name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Rule name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "cmdcat", + "cli_short_name": null, + "default": null, + "doc": "Command category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Command category", + "multivalue": false, + "name": "cmdcategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberuser_user", + "cli_short_name": null, + "default": null, + "doc": "Users", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Users", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberuser_user", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberhost_host", + "cli_short_name": null, + "default": null, + "doc": "Hosts", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Hosts", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberhost_host", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberhost_hostgroup", + "cli_short_name": null, + "default": null, + "doc": "Host Groups", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Host Groups", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberhost_hostgroup", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberallowcmd_sudocmd", + "cli_short_name": null, + "default": null, + "doc": "Sudo Allow Commands", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Sudo Allow Commands", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberallowcmd_sudocmd", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberdenycmd_sudocmd", + "cli_short_name": null, + "default": null, + "doc": "Sudo Deny Commands", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Sudo Deny Commands", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberdenycmd_sudocmd", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberallowcmd_sudocmdgroup", + "cli_short_name": null, + "default": null, + "doc": "Sudo Command Groups", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Sudo Command Groups", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberallowcmd_sudocmdgroup", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "memberdenycmd_sudocmdgroup", + "cli_short_name": null, + "default": null, + "doc": "Sudo Command Groups", + "exclude": null, + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Sudo Command Groups", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "memberdenycmd_sudocmdgroup", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + } + ], + "uuid_attribute": "ipauniqueid" + }, + "taskgroup": { + "attribute_members": { + "member": [ + "user", + "group", + "rolegroup" + ], + "memberindirect": [ + "user", + "group", + "rolegroup" + ] + }, + "container_dn": "cn=taskgroups,cn=accounts", + "default_attributes": [ + "cn", + "description", + "member", + "memberof", + "memberindirect" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Task Groups", + "methods": [ + "add", + "add_member", + "del", + "find", + "mod", + "remove_member", + "show" + ], + "name": "taskgroup", + "object_class": [ + "groupofnames" + ], + "object_class_config": null, + "object_name": "taskgroup", + "object_name_plural": "taskgroups", + "parent_object": "", + "primary_key": "cn", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "name", + "cli_short_name": null, + "default": null, + "doc": "Task-group name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Task-group name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "cn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "desc", + "cli_short_name": null, + "default": null, + "doc": "Task-group description", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Description", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "description", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + } + ], + "uuid_attribute": "" + }, + "user": { + "attribute_members": { + "memberof": [ + "group", + "netgroup", + "rolegroup", + "taskgroup" + ] + }, + "container_dn": "cn=users,cn=accounts", + "default_attributes": [ + "uid", + "givenname", + "sn", + "homedirectory", + "loginshell", + "ou", + "telephonenumber", + "title", + "memberof", + "nsaccountlock" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Users", + "methods": [ + "add", + "del", + "disable", + "enable", + "find", + "mod", + "show" + ], + "name": "user", + "object_class": [ + "posixaccount" + ], + "object_class_config": "ipauserobjectclasses", + "object_name": "user", + "object_name_plural": "users", + "parent_object": "", + "primary_key": "uid", + "rdn_attribute": "", + "takes_params": [ + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "login", + "cli_short_name": null, + "default": null, + "doc": "User login", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "User login", + "length": null, + "maxlength": 255, + "minlength": null, + "multivalue": false, + "name": "uid", + "pattern": "^[a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,252}[a-zA-Z0-9_.$-]?$", + "pattern_errmsg": "may only include letters, numbers, _, -, . and $", + "primary_key": true, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "first", + "cli_short_name": null, + "default": null, + "doc": "First name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "First name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "givenname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "last", + "cli_short_name": null, + "default": null, + "doc": "Last name", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Last name", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "sn", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": true, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "homedir", + "cli_short_name": null, + "default": null, + "doc": "Home directory", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Home directory", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "homedirectory", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": true, + "class": "Str", + "cli_name": "gecos", + "cli_short_name": null, + "default": null, + "doc": "GECOS field", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "GECOS field", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "gecos", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "shell", + "cli_short_name": null, + "default": "/bin/sh", + "doc": "Login shell", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Login shell", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "loginshell", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": true, + "class": "Str", + "cli_name": "principal", + "cli_short_name": null, + "default": null, + "doc": "Kerberos principal", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Kerberos principal", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "krbprincipalname", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "email", + "cli_short_name": null, + "default": null, + "doc": "Email address", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Email address", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "mail", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Password", + "cli_name": "password", + "cli_short_name": null, + "default": null, + "doc": "Prompt to set the user password", + "exclude": [ + "webui" + ], + "flags": [], + "hint": null, + "include": null, + "label": "Password", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "userpassword", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": true, + "class": "Int", + "cli_name": "uid", + "cli_short_name": null, + "default": 999, + "doc": "User ID Number (system will assign one if not provided)", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "UID", + "maxvalue": null, + "minvalue": null, + "multivalue": false, + "name": "uidnumber", + "primary_key": false, + "query": false, + "required": false, + "type": "int" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "street", + "cli_short_name": null, + "default": null, + "doc": "Street address", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Street address", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": false, + "name": "street", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "phone", + "cli_short_name": null, + "default": null, + "doc": "Telephone Number", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Telephone Number", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": true, + "name": "telephonenumber", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "mobile", + "cli_short_name": null, + "default": null, + "doc": "Mobile Telephone Number", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Mobile Telephone Number", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": true, + "name": "mobile", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "pager", + "cli_short_name": null, + "default": null, + "doc": "Pager Number", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Pager Number", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": true, + "name": "pager", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Str", + "cli_name": "fax", + "cli_short_name": null, + "default": null, + "doc": "Fax Number", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Fax Number", + "length": null, + "maxlength": null, + "minlength": null, + "multivalue": true, + "name": "facsimiletelephonenumber", + "pattern": null, + "pattern_errmsg": null, + "primary_key": false, + "query": false, + "required": false, + "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Bool", + "cli_name": "nsaccountlock", + "cli_short_name": null, + "default": null, + "doc": "Account disabled", + "exclude": null, + "falsehoods": [ + 0, + "0", + "false" + ], + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Account disabled", + "multivalue": false, + "name": "nsaccountlock", + "primary_key": false, + "query": false, + "required": false, + "truths": [ + "1", + 1, + "true" + ], + "type": "bool" + } + ], + "uuid_attribute": "ipauniqueid" + } + } + }, + { + "error": null, + "messages": { + "ajax": { + "401": "Your kerberos ticket no longer valid.Please run KInit and then click 'retry'If this is your first time running the IPA Web UI Follow these directions to configure your browser." + }, + "button": { + "add": "Add", + "enroll": "Enroll", + "find": "Find", + "remove": "Delete", + "reset": "Reset", + "update": "Update" + }, + "details": { + "account": "Account Details", + "contact": "Contact Details", + "employee": " Employee Information", + "identity": "Identity Details", + "mailing": "Mailing Address", + "misc": "Misc. Information", + "to_top": "Back to Top" + }, + "login": { + "header": "Logged In As" + }, + "search": { + "delete_confirm": "Do you really want to delete the selected entries?", + "quick_links": "Quick Links", + "select_all": "Select All", + "unselect_all": "Unselect All" + } + } + }, + { + "count": 1, + "error": null, + "result": [ + { + "cn": [ + "Administrator" + ], + "dn": "uid=admin,cn=users,cn=accounts,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com", + "gecos": [ + "Administrator" + ], + "gidnumber": [ + "2002517652" + ], + "homedirectory": [ + "/home/admin" + ], + "ipauniqueid": [ + "30e47399-ee4011df-92b88382-0dfb6bc8" + ], + "krblastpwdchange": [ + "20101112093732Z" + ], + "krbpasswordexpiration": [ + "20110210093732Z" + ], + "krbprincipalname": [ + "admin@AYOUNG.BOSTON.DEVEL.REDHAT.COM" + ], + "loginshell": [ + "/bin/bash" + ], + "memberof_group": [ + "admins" + ], + "memberof_rolegroup": [ + "replicaadmin" + ], + "memberof_taskgroup": [ + "managereplica", + "deletereplica" + ], + "mepmanagedentry": [ + "cn=admin,cn=groups,cn=accounts,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com" + ], + "nsaccountlock": [ + "False" + ], + "objectclass": [ + "top", + "person", + "posixaccount", + "krbprincipalaux", + "krbticketpolicyaux", + "inetuser", + "ipaobject", + "mepOriginEntry" + ], + "sn": [ + "Administrator" + ], + "uid": [ + "admin" + ], + "uidnumber": [ + "2002517652" + ] + } + ], + "summary": "1 user matched", + "truncated": false + } + ] + } +} \ No newline at end of file diff --git a/install/static/test/data/i18n_messages.json b/install/static/test/data/i18n_messages.json new file mode 100644 index 000000000..6dfb1c645 --- /dev/null +++ b/install/static/test/data/i18n_messages.json @@ -0,0 +1,37 @@ +{ + "error": null, + "id": 0, + "result": { + "messages": { + "ajax": { + "401": "Your kerberos ticket no longer valid.Please run KInit and then click 'retry'If this is your first time running the IPA Web UI Follow these directions to configure your browser." + }, + "button": { + "add": "Add", + "enroll": "Enroll", + "find": "Find", + "remove": "Delete", + "reset": "Reset", + "update": "Update" + }, + "details": { + "account": "Account Details", + "contact": "Contact Details", + "employee": " Employee Information", + "identity": "Identity Details", + "mailing": "Mailing Address", + "misc": "Misc. Information", + "to_top": "Back to Top" + }, + "login": { + "header": "Logged In As" + }, + "search": { + "delete_confirm": "Do you really want to delete the selected entries?", + "quick_links": "Quick Links", + "select_all": "Select All", + "unselect_all": "Unselect All" + } + } + } +} \ No newline at end of file diff --git a/install/static/test/data/json_metadata.json b/install/static/test/data/json_metadata.json index 1942dea91..372b9de54 100644 --- a/install/static/test/data/json_metadata.json +++ b/install/static/test/data/json_metadata.json @@ -1,13 +1,16 @@ { "error": null, - "id": 6, + "id": 0, "result": { "messages": { + "ajax": { + "401": "Your kerberos ticket no longer valid.Please run KInit and then click 'retry'If this is your first time running the IPA Web UI Follow these directions to configure your browser." + }, "button": { "add": "Add", - "remove": "Delete", "enroll": "Enroll", "find": "Find", + "remove": "Delete", "reset": "Reset", "update": "Update" }, @@ -63,6 +66,7 @@ "object_name_plural": "automount keys", "parent_object": "automountmap", "primary_key": "automountkey", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -170,6 +174,7 @@ "object_name_plural": "automount locations", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -228,6 +233,7 @@ "object_name_plural": "automount maps", "parent_object": "automountlocation", "primary_key": "automountmapname", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -313,6 +319,7 @@ "object_name": "configuration options", "object_name_plural": "entries", "parent_object": "", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -620,6 +627,7 @@ "object_name_plural": "entries", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -1015,6 +1023,13 @@ "user", "group" ], + "memberindirect": [ + "user", + "group", + "netgroup", + "rolegroup", + "taskgroup" + ], "memberof": [ "group", "netgroup", @@ -1028,7 +1043,8 @@ "description", "gidnumber", "member", - "memberof" + "memberof", + "memberindirect" ], "hidden_attributes": [ "objectclass", @@ -1054,6 +1070,7 @@ "object_name_plural": "groups", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -1098,8 +1115,8 @@ "minlength": null, "multivalue": false, "name": "description", - "pattern": "^[a-zA-Z-2-9_. ]{0,30}[a-zA-Z0-9_.$-]?$", - "pattern_errmsg": "may only include letters, numbers, _, -, . and $", + "pattern": null, + "pattern_errmsg": null, "primary_key": false, "query": false, "required": true, @@ -1126,64 +1143,6 @@ "query": false, "required": false, "type": "int" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_group", - "cli_short_name": null, - "default": null, - "doc": "Member groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_group", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_user", - "cli_short_name": null, - "default": null, - "doc": "Member users", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member users", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_user", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" } ], "uuid_attribute": "ipauniqueid" @@ -1259,6 +1218,7 @@ "object_name_plural": "HBAC rules", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "ipauniqueid", "takes_params": [ { "attribute": false, @@ -1667,7 +1627,8 @@ "container_dn": "cn=hbacservices,cn=accounts", "default_attributes": [ "cn", - "description" + "description", + "memberindirect" ], "hidden_attributes": [ "objectclass", @@ -1687,10 +1648,11 @@ "ipahbacservice" ], "object_class_config": null, - "object_name": "service", - "object_name_plural": "services", + "object_name": "hbacsvc", + "object_name_plural": "hbacsvcs", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -1781,6 +1743,7 @@ "object_name_plural": "hbacsvcgroups", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -1885,6 +1848,7 @@ "object_name_plural": "hosts", "parent_object": "", "primary_key": "fqdn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -2063,66 +2027,44 @@ }, { "attribute": false, - "autofill": false, - "class": "Bytes", - "cli_name": "certificate", - "cli_short_name": null, - "default": null, - "doc": "Base-64 encoded server certificate", - "exclude": null, - "flags": [], - "hint": null, - "include": null, - "label": "Certificate", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "usercertificate", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "str" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "krbprincipalname", + "autofill": true, + "class": "Flag", + "cli_name": "random", "cli_short_name": null, - "default": null, - "doc": "Principal name", + "default": false, + "doc": "Generate a random password to be used in bulk enrollment", "exclude": null, + "falsehoods": [ + 0, + "0", + "false" + ], "flags": [ - "no_update", - "no_create", "no_search" ], "hint": null, "include": null, - "label": "Principal name", - "length": null, - "maxlength": null, - "minlength": null, + "label": "", "multivalue": false, - "name": "krbprincipalname", - "pattern": null, - "pattern_errmsg": null, + "name": "random", "primary_key": false, "query": false, "required": false, - "type": "unicode" + "truths": [ + "1", + 1, + "true" + ], + "type": "bool" }, { "attribute": false, "autofill": false, "class": "Str", - "cli_name": "memberof_hostgroup", + "cli_name": "randompassword", "cli_short_name": null, "default": null, - "doc": "Member of host-groups", + "doc": "Random password", "exclude": null, "flags": [ "no_update", @@ -2131,12 +2073,12 @@ ], "hint": null, "include": null, - "label": "Member of host-groups", + "label": "Random password", "length": null, "maxlength": null, "minlength": null, "multivalue": false, - "name": "memberof_hostgroup", + "name": "randompassword", "pattern": null, "pattern_errmsg": null, "primary_key": false, @@ -2147,40 +2089,36 @@ { "attribute": false, "autofill": false, - "class": "Str", - "cli_name": "memberof_netgroup", + "class": "Bytes", + "cli_name": "certificate", "cli_short_name": null, "default": null, - "doc": "Member of net-groups", + "doc": "Base-64 encoded server certificate", "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], + "flags": [], "hint": null, "include": null, - "label": "Member of net-groups", + "label": "Certificate", "length": null, "maxlength": null, "minlength": null, "multivalue": false, - "name": "memberof_netgroup", + "name": "usercertificate", "pattern": null, "pattern_errmsg": null, "primary_key": false, "query": false, "required": false, - "type": "unicode" + "type": "str" }, { "attribute": false, "autofill": false, "class": "Str", - "cli_name": "memberof_rolegroup", + "cli_name": "krbprincipalname", "cli_short_name": null, "default": null, - "doc": "Member of role-groups", + "doc": "Principal name", "exclude": null, "flags": [ "no_update", @@ -2189,12 +2127,12 @@ ], "hint": null, "include": null, - "label": "Member of role-groups", + "label": "Principal name", "length": null, "maxlength": null, "minlength": null, "multivalue": false, - "name": "memberof_rolegroup", + "name": "krbprincipalname", "pattern": null, "pattern_errmsg": null, "primary_key": false, @@ -2211,6 +2149,10 @@ "host", "hostgroup" ], + "memberindirect": [ + "host", + "hostgroup" + ], "memberof": [ "hostgroup" ] @@ -2220,7 +2162,8 @@ "cn", "description", "member", - "memberof" + "memberof", + "memberindirect" ], "hidden_attributes": [ "objectclass", @@ -2246,6 +2189,7 @@ "object_name_plural": "hostgroups", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -2296,93 +2240,6 @@ "query": false, "required": true, "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_host", - "cli_short_name": null, - "default": null, - "doc": "Member hosts", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member hosts", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_host", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_hostgroup", - "cli_short_name": null, - "default": null, - "doc": "Member host-groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member host-groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_hostgroup", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "memberof_hostgroup", - "cli_short_name": null, - "default": null, - "doc": "Member of host-groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member of host-groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "memberof_hostgroup", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" } ], "uuid_attribute": "ipauniqueid" @@ -2411,6 +2268,7 @@ "object_name_plural": "entries", "parent_object": "", "primary_key": "uid", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -2486,10 +2344,16 @@ }, "netgroup": { "attribute_members": { + "member": [ + "netgroup" + ], "memberhost": [ "host", "hostgroup" ], + "memberindirect": [ + "netgroup" + ], "memberof": [ "netgroup" ], @@ -2506,7 +2370,11 @@ "externalhost", "nisdomainname", "memberuser", - "memberhost" + "memberhost", + "member", + "memberindirect", + "usercategory", + "hostcategory" ], "hidden_attributes": [ "objectclass", @@ -2533,6 +2401,7 @@ "object_name_plural": "netgroups", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "ipauniqueid", "takes_params": [ { "attribute": false, @@ -2636,37 +2505,86 @@ "query": false, "required": false, "type": "unicode" - } - ], - "uuid_attribute": "ipauniqueid" - }, - "pwpolicy": { - "attribute_members": {}, - "container_dn": "cn=AYOUNG.BOSTON.DEVEL.REDHAT.COM,cn=kerberos", - "default_attributes": [ - "cn", - "cospriority", - "krbmaxpwdlife", - "krbminpwdlife", - "krbpwdhistorylength", - "krbpwdmindiffchars", - "krbpwdminlength" - ], - "hidden_attributes": [ - "objectclass", - "aci" - ], - "label": "Password Policy", - "methods": [ - "add", - "del", - "find", - "mod", - "show" - ], - "name": "pwpolicy", - "object_class": [ - "top", + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "usercat", + "cli_short_name": null, + "default": null, + "doc": "User category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "User category", + "multivalue": false, + "name": "usercategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "hostcat", + "cli_short_name": null, + "default": null, + "doc": "Host category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Host category", + "multivalue": false, + "name": "hostcategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + } + ], + "uuid_attribute": "ipauniqueid" + }, + "pwpolicy": { + "attribute_members": {}, + "container_dn": "cn=AYOUNG.BOSTON.DEVEL.REDHAT.COM,cn=kerberos", + "default_attributes": [ + "cn", + "cospriority", + "krbmaxpwdlife", + "krbminpwdlife", + "krbpwdhistorylength", + "krbpwdmindiffchars", + "krbpwdminlength", + "krbpwdmaxfailure", + "krbpwdfailurecountinterval", + "krbpwdlockoutduration" + ], + "hidden_attributes": [ + "objectclass", + "aci" + ], + "label": "Password Policy", + "methods": [ + "add", + "del", + "find", + "mod", + "show" + ], + "name": "pwpolicy", + "object_class": [ + "top", "nscontainer", "krbpwdpolicy" ], @@ -2675,6 +2593,7 @@ "object_name_plural": "password policies", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -2844,6 +2763,12 @@ "host", "hostgroup" ], + "memberindirect": [ + "user", + "group", + "host", + "hostgroup" + ], "memberof": [ "taskgroup" ] @@ -2853,7 +2778,8 @@ "cn", "description", "member", - "memberof" + "memberof", + "memberindirect" ], "hidden_attributes": [ "objectclass", @@ -2879,6 +2805,7 @@ "object_name_plural": "rolegroups", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -2929,93 +2856,6 @@ "query": false, "required": true, "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_group", - "cli_short_name": null, - "default": null, - "doc": "Member groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_group", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_user", - "cli_short_name": null, - "default": null, - "doc": "Member users", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member users", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_user", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "memberof_taskgroup", - "cli_short_name": null, - "default": null, - "doc": "Member of task-groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member of task-groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "memberof_taskgroup", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" } ], "uuid_attribute": "" @@ -3062,6 +2902,7 @@ "object_name_plural": "services", "parent_object": "", "primary_key": "krbprincipalname", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -3120,7 +2961,7 @@ "attribute_members": {}, "container_dn": "cn=sudocmds,cn=accounts", "default_attributes": [ - "cn", + "sudocmd", "description" ], "hidden_attributes": [ @@ -3144,7 +2985,8 @@ "object_name": "sudocmd", "object_name_plural": "sudocmds", "parent_object": "", - "primary_key": "cn", + "primary_key": "sudocmd", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -3163,7 +3005,7 @@ "maxlength": null, "minlength": null, "multivalue": false, - "name": "cn", + "name": "sudocmd", "pattern": null, "pattern_errmsg": null, "primary_key": true, @@ -3205,6 +3047,10 @@ "sudocmd", "sudocmdgroup" ], + "memberindirect": [ + "sudocmd", + "sudocmdgroup" + ], "memberof": [ "sudocmdgroup" ] @@ -3214,7 +3060,8 @@ "cn", "description", "member", - "memberof" + "memberof", + "memberindirect" ], "hidden_attributes": [ "objectclass", @@ -3240,6 +3087,7 @@ "object_name_plural": "sudocmdgroups", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -3406,6 +3254,7 @@ "object_name_plural": "Sudo Rules", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "ipauniqueid", "takes_params": [ { "attribute": false, @@ -3457,6 +3306,29 @@ "required": false, "type": "unicode" }, + { + "attribute": false, + "autofill": false, + "class": "StrEnum", + "cli_name": "cmdcat", + "cli_short_name": null, + "default": null, + "doc": "Command category the rule applies to", + "exclude": null, + "flags": [], + "hint": null, + "include": null, + "label": "Command category", + "multivalue": false, + "name": "cmdcategory", + "primary_key": false, + "query": false, + "required": false, + "type": "unicode", + "values": [ + "all" + ] + }, { "attribute": false, "autofill": false, @@ -3669,6 +3541,11 @@ "user", "group", "rolegroup" + ], + "memberindirect": [ + "user", + "group", + "rolegroup" ] }, "container_dn": "cn=taskgroups,cn=accounts", @@ -3676,7 +3553,8 @@ "cn", "description", "member", - "memberof" + "memberof", + "memberindirect" ], "hidden_attributes": [ "objectclass", @@ -3701,6 +3579,7 @@ "object_name_plural": "taskgroups", "parent_object": "", "primary_key": "cn", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -3751,93 +3630,6 @@ "query": false, "required": true, "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_group", - "cli_short_name": null, - "default": null, - "doc": "Member groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_group", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_user", - "cli_short_name": null, - "default": null, - "doc": "Member users", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member users", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_user", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "member_rolegroup", - "cli_short_name": null, - "default": null, - "doc": "Member role-groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Member role-groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "member_rolegroup", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" } ], "uuid_attribute": "" @@ -3861,7 +3653,8 @@ "ou", "telephonenumber", "title", - "memberof" + "memberof", + "nsaccountlock" ], "hidden_attributes": [ "objectclass", @@ -3886,6 +3679,7 @@ "object_name_plural": "users", "parent_object": "", "primary_key": "uid", + "rdn_attribute": "", "takes_params": [ { "attribute": false, @@ -4094,7 +3888,7 @@ "cli_name": "password", "cli_short_name": null, "default": null, - "doc": "Set the user password", + "doc": "Prompt to set the user password", "exclude": [ "webui" ], @@ -4161,122 +3955,6 @@ "required": false, "type": "unicode" }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "memberof_group", - "cli_short_name": null, - "default": null, - "doc": "Groups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Groups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "memberof_group", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "memberof_netgroup", - "cli_short_name": null, - "default": null, - "doc": "Netgroups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Netgroups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "memberof_netgroup", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "memberof_rolegroup", - "cli_short_name": null, - "default": null, - "doc": "Rolegroups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Rolegroups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "memberof_rolegroup", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, - { - "attribute": false, - "autofill": false, - "class": "Str", - "cli_name": "memberof_taskgroup", - "cli_short_name": null, - "default": null, - "doc": "Taskgroups", - "exclude": null, - "flags": [ - "no_update", - "no_create", - "no_search" - ], - "hint": null, - "include": null, - "label": "Taskgroups", - "length": null, - "maxlength": null, - "minlength": null, - "multivalue": false, - "name": "memberof_taskgroup", - "pattern": null, - "pattern_errmsg": null, - "primary_key": false, - "query": false, - "required": false, - "type": "unicode" - }, { "attribute": false, "autofill": false, @@ -4376,10 +4054,44 @@ "query": false, "required": false, "type": "unicode" + }, + { + "attribute": false, + "autofill": false, + "class": "Bool", + "cli_name": "nsaccountlock", + "cli_short_name": null, + "default": null, + "doc": "Account disabled", + "exclude": null, + "falsehoods": [ + 0, + "0", + "false" + ], + "flags": [ + "no_update", + "no_create", + "no_search" + ], + "hint": null, + "include": null, + "label": "Account disabled", + "multivalue": false, + "name": "nsaccountlock", + "primary_key": false, + "query": false, + "required": false, + "truths": [ + "1", + 1, + "true" + ], + "type": "bool" } ], "uuid_attribute": "ipauniqueid" } } } -} +} \ No newline at end of file diff --git a/install/static/webui.js b/install/static/webui.js index bf367ee94..b588876a7 100644 --- a/install/static/webui.js +++ b/install/static/webui.js @@ -53,20 +53,20 @@ var self_serv_tab_set = {name:'user', label:'Users', setup:ipa_entity_setup}]}]; -var ipa_whoami_pkey; /* main (document onready event handler) */ $(function() { - function whoami_on_win(data, text_status, xhr) { + + function init_on_win(data, text_status, xhr) { $(window).bind('hashchange', window_hashchange); - var whoami = data.result.result[0]; - ipa_whoami_pkey=whoami.uid[0]; + var whoami = IPA.whoami; + IPA.whoami_pkey=whoami.uid[0]; $('#loggedinas').find('strong').text(whoami.krbprincipalname[0]); $('#loggedinas a').fragment( - {'user-facet':'details', 'user-pkey':ipa_whoami_pkey},2); + {'user-facet':'details', 'user-pkey':IPA.whoami_pkey},2); for (var i=0; i +# Adam YOung # # Copyright (c) 2010 Red Hat # See file 'copying' for use and warranty information @@ -35,6 +36,43 @@ class json_metadata(Command): """ INTERNAL = False + + takes_args = ( + Str('objname?', + doc=_('Name of object to export'), + ), + ) + + has_output = ( + Output('metadata', dict, doc=_('Dict of JSON encoded IPA Objects')), + ) + + def execute(self, objname): + + if objname and objname in self.api.Object: + + meta = dict( + result=dict( + ((objname, json_serialize(self.api.Object[objname])), ) + ) + ) + retval= dict([("metadata",meta), ("messages",dict())]) + + else: + meta=dict( + (o.name, json_serialize(o)) for o in self.api.Object() + ) + + retval= dict([("metadata",meta)]) + + return retval + + def output_for_cli(self, textui, result, *args, **options): + print json.dumps(result, default=json_serialize) + +api.register(json_metadata) + +class i18n_messages(Command): messages={ "login": {"header" :_("Logged In As")}, "button":{ @@ -67,41 +105,14 @@ class json_metadata(Command): "Follow these directions to configure your browser.") } } - - takes_args = ( - Str('objname?', - doc=_('Name of object to export'), - ), - ) - has_output = ( - Output('metadata', dict, doc=_('Dict of JSON encoded IPA Objects')), Output('messages', dict, doc=_('Dict of I18N messages')), ) - - def execute(self, objname): - - if objname and objname in self.api.Object: - - meta = dict( - result=dict( - ((objname, json_serialize(self.api.Object[objname])), ) - ) - ) - retval= dict([("metadata",meta), ("messages",dict())]) - - else: - meta=dict( - (o.name, json_serialize(o)) for o in self.api.Object() - ) - - retval= dict([("metadata",meta), - ("messages",json_serialize(self.messages))]) - - return retval + def execute(self): + return dict([("messages",json_serialize(self.messages))]) def output_for_cli(self, textui, result, *args, **options): print json.dumps(result, default=json_serialize) -api.register(json_metadata) +api.register(i18n_messages) -- cgit