summaryrefslogtreecommitdiffstats
path: root/install/static/usermeta.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/usermeta.js')
-rw-r--r--install/static/usermeta.js415
1 files changed, 415 insertions, 0 deletions
diff --git a/install/static/usermeta.js b/install/static/usermeta.js
new file mode 100644
index 00000000..9d8b228d
--- /dev/null
+++ b/install/static/usermeta.js
@@ -0,0 +1,415 @@
+//TODO: This data should be fetched from a separate web URL and
+//generated off the metadata for the user object
+//but it is basically static.
+
+var PluginData = {
+ "primary_key": "uid",
+ "default_attributes": [
+ "uid",
+ "givenname",
+ "sn",
+ "homedirectory",
+ "loginshell",
+ "ou",
+ "telephonenumber",
+ "title",
+ "memberof"
+ ],
+ "object_name_plural": "users",
+ "container_dn": "cn=users,cn=accounts",
+ "object_class_config": "ipauserobjectclasses",
+ "hidden_attributes": [
+ "objectclass",
+ "aci"
+ ],
+ "uuid_attribute": "ipauniqueid",
+ "label": "Users",
+ "methods": [
+ "add",
+ "del",
+ "find",
+ "lock",
+ "mod",
+ "show",
+ "unlock"
+ ],
+ "object_name": "user",
+ "takes_params": [
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "login",
+ "primary_key": true,
+ "name": "uid",
+ "default": null,
+ "doc": "User login",
+ "required": true,
+ "flags": [],
+ "label": "User login",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "first",
+ "primary_key": false,
+ "name": "givenname",
+ "default": null,
+ "doc": "First name",
+ "required": true,
+ "flags": [],
+ "label": "First name",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "last",
+ "primary_key": false,
+ "name": "sn",
+ "default": null,
+ "doc": "Last name",
+ "required": true,
+ "flags": [],
+ "label": "Last name",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "homedir",
+ "primary_key": false,
+ "name": "homedirectory",
+ "default": null,
+ "doc": "Home directory",
+ "required": false,
+ "flags": [],
+ "label": "Home directory",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "gecos",
+ "primary_key": false,
+ "name": "gecos",
+ "default": null,
+ "doc": "GECOS field",
+ "required": false,
+ "flags": [],
+ "label": "GECOS field",
+ "autofill": true,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "shell",
+ "primary_key": false,
+ "name": "loginshell",
+ "default": "/bin/sh",
+ "doc": "Login shell",
+ "required": false,
+ "flags": [],
+ "label": "Login shell",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "principal",
+ "primary_key": false,
+ "name": "krbprincipalname",
+ "default": null,
+ "doc": "Kerberos principal",
+ "required": false,
+ "flags": [],
+ "label": "Kerberos principal",
+ "autofill": true,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "email",
+ "primary_key": false,
+ "name": "mail",
+ "default": null,
+ "doc": "Email address",
+ "required": false,
+ "flags": [],
+ "label": "Email address",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": [
+ "webui"
+ ],
+ "minlength": null,
+ "include": null,
+ "cli_name": "password",
+ "primary_key": false,
+ "name": "userpassword",
+ "default": null,
+ "doc": "Set the user password",
+ "required": false,
+ "flags": [],
+ "label": "Password",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Password",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "include": null,
+ "cli_name": "uid",
+ "primary_key": false,
+ "minvalue": null,
+ "doc": "User ID Number (system will assign one if not provided)",
+ "required": false,
+ "flags": [],
+ "label": "UID",
+ "default": 999,
+ "autofill": true,
+ "multivalue": false,
+ "attribute": false,
+ "query": false,
+ "maxvalue": null,
+ "cli_short_name": null,
+ "type": "int",
+ "class": "Int",
+ "name": "uidnumber"
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "street",
+ "primary_key": false,
+ "name": "street",
+ "default": null,
+ "doc": "Street address",
+ "required": false,
+ "flags": [],
+ "label": "Street address",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "memberof_group",
+ "primary_key": false,
+ "name": "memberof_group",
+ "default": null,
+ "doc": "Groups",
+ "required": false,
+ "flags": [
+ "no_update",
+ "no_create",
+ "no_search"
+ ],
+ "label": "Groups",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "memberof_netgroup",
+ "primary_key": false,
+ "name": "memberof_netgroup",
+ "default": null,
+ "doc": "Netgroups",
+ "required": false,
+ "flags": [
+ "no_update",
+ "no_create",
+ "no_search"
+ ],
+ "label": "Netgroups",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "memberof_rolegroup",
+ "primary_key": false,
+ "name": "memberof_rolegroup",
+ "default": null,
+ "doc": "Rolegroups",
+ "required": false,
+ "flags": [
+ "no_update",
+ "no_create",
+ "no_search"
+ ],
+ "label": "Rolegroups",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ },
+ {
+ "exclude": null,
+ "minlength": null,
+ "include": null,
+ "cli_name": "memberof_taskgroup",
+ "primary_key": false,
+ "name": "memberof_taskgroup",
+ "default": null,
+ "doc": "Taskgroups",
+ "required": false,
+ "flags": [
+ "no_update",
+ "no_create",
+ "no_search"
+ ],
+ "label": "Taskgroups",
+ "autofill": false,
+ "multivalue": false,
+ "pattern": null,
+ "type": "unicode",
+ "attribute": false,
+ "query": false,
+ "cli_short_name": null,
+ "length": null,
+ "class": "Str",
+ "maxlength": null
+ }
+ ],
+ "attribute_members": {
+ "memberof": [
+ "group",
+ "netgroup",
+ "rolegroup",
+ "taskgroup"
+ ]
+ },
+ "parent_object": "",
+ "object_class": [
+ "posixaccount"
+ ],
+ "name": "user"
+}
+
+ipa_objs['user'] = PluginData;