Trust Web UI

This patch adds Web UI for trusts.

Navigation path is IPA Server/Trust. It allows to add, deleted and show trust. Mod command doesn't have defined input options so update of a trust is not supported yet.

Adder dialog supports two ways if adding a trust:
1)  adding with domain name, admin name and admin password.
2) adding with domain name, shared secret

Search page shows only list of realm names which are trusts' cns.

Details page is read only. It contains following attributes:
* Realm name (cn)
* Domain NetBIOS name (ipantflatname)
* Domain Security Identifier (ipanttrusteddomainsid)
* Trust direction (trustdirection)
* Trust type (trusttype)

trust_output_params also defines 'Trust status' param. This param is not return by show command as well so it's commented out in code until it's fixed in plugin code.

Fields in details pages are using labels defined in internal.py. It is temporary solution until including of command.has_output_params will be added to metadata.

https://fedorahosted.org/freeipa/ticket/2829
This commit is contained in:
Petr Vobornik
2012-06-13 17:44:36 +02:00
committed by Martin Kosek
parent a5cb1961fe
commit ae19cce7ad
17 changed files with 1169 additions and 52 deletions

View File

@@ -580,7 +580,9 @@
"type": "unicode",
"values": [
"AllowLMhash",
"AllowNThash"
"AllowNThash",
"KDC:Disable Last Success",
"KDC:Disable Lockout"
]
},
{
@@ -817,8 +819,28 @@
"ipagroupobjectclasses",
"ipagroupsearchfields",
"ipahomesrootdir",
"ipakrbprincipalalias",
"ipamaxusernamelength",
"ipamigrationenabled",
"ipantdomainguid",
"ipantfallbackprimarygroup",
"ipantflatname",
"ipanthash",
"ipanthomedirectory",
"ipanthomedirectorydrive",
"ipantlogonscript",
"ipantprofilepath",
"ipantsecurityidentifier",
"ipantsupportedencryptiontypes",
"ipanttrustattributes",
"ipanttrustauthincoming",
"ipanttrustauthoutgoing",
"ipanttrustdirection",
"ipanttrusteddomainsid",
"ipanttrustforesttrustinfo",
"ipanttrustpartner",
"ipanttrustposixoffset",
"ipanttrusttype",
"ipapermissiontype",
"ipapwdexpadvnotify",
"ipasearchrecordslimit",
@@ -3915,6 +3937,67 @@
],
"uuid_attribute": ""
},
"entitle": {
"aciattrs": [
"ipaentitlementid",
"ipauniqueid",
"usercertificate",
"userpkcs12"
],
"attribute_members": {},
"bindable": false,
"container_dn": "cn=entitlements,cn=etc",
"default_attributes": [
"ipaentitlement"
],
"hidden_attributes": [
"objectclass",
"aci"
],
"label": "Entitlements",
"label_singular": "Entitlement",
"methods": [
"consume",
"find",
"import",
"register",
"sync"
],
"name": "entitle",
"object_class": [
"ipaobject",
"ipaentitlement"
],
"object_class_config": null,
"object_name": "entitlement",
"object_name_plural": "entitlements",
"parent_object": "",
"rdn_attribute": "",
"relationships": {
"member": [
"Member",
"",
"no_"
],
"memberindirect": [
"Indirect Member",
null,
"no_indirect_"
],
"memberof": [
"Member Of",
"in_",
"not_in_"
],
"memberofindirect": [
"Indirect Member Of",
null,
"not_in_indirect_"
]
},
"takes_params": [],
"uuid_attribute": "ipaentitlementid"
},
"group": {
"aciattrs": [
"businesscategory",
@@ -6063,6 +6146,7 @@
},
"service": {
"aciattrs": [
"ipakrbprincipalalias",
"ipauniqueid",
"krbcanonicalname",
"krbextradata",
@@ -6125,7 +6209,8 @@
"krbticketpolicyaux",
"ipaobject",
"ipaservice",
"pkiuser"
"pkiuser",
"ipakrbprincipal"
],
"object_class_config": null,
"object_name": "service",
@@ -6807,6 +6892,99 @@
],
"uuid_attribute": "ipauniqueid"
},
"trust": {
"aciattrs": [
"cn",
"ipantflatname",
"ipantsupportedencryptiontypes",
"ipanttrustattributes",
"ipanttrustauthincoming",
"ipanttrustauthoutgoing",
"ipanttrustdirection",
"ipanttrusteddomainsid",
"ipanttrustforesttrustinfo",
"ipanttrustpartner",
"ipanttrustposixoffset",
"ipanttrusttype",
"objectclass"
],
"attribute_members": {},
"bindable": false,
"container_dn": "cn=trusts",
"default_attributes": [
"cn",
"ipantflatname",
"ipanttrusteddomainsid",
"ipanttrusttype",
"ipanttrustattributes",
"ipanttrustdirection",
"ipanttrustpartner",
"ipantauthtrustoutgoing",
"ipanttrustauthincoming",
"ipanttrustforesttrustinfo",
"ipanttrustposixoffset",
"ipantsupportedencryptiontypes"
],
"hidden_attributes": [
"objectclass",
"aci"
],
"label": "Trusts",
"label_singular": "Trust",
"methods": [
"add_ad",
"del",
"find",
"mod",
"show"
],
"name": "trust",
"object_class": [
"ipaNTTrustedDomain"
],
"object_class_config": null,
"object_name": "trust",
"object_name_plural": "trusts",
"parent_object": "",
"primary_key": "cn",
"rdn_attribute": "",
"relationships": {
"member": [
"Member",
"",
"no_"
],
"memberindirect": [
"Indirect Member",
null,
"no_indirect_"
],
"memberof": [
"Member Of",
"in_",
"not_in_"
],
"memberofindirect": [
"Indirect Member Of",
null,
"not_in_indirect_"
]
},
"takes_params": [
{
"class": "Str",
"doc": "Realm name",
"flags": [],
"label": "Realm name",
"name": "cn",
"noextrawhitespace": true,
"primary_key": true,
"required": true,
"type": "unicode"
}
],
"uuid_attribute": ""
},
"user": {
"aciattrs": [
"audio",