Fixed host Enrolled column.

The Enrolled column in the host search page has been added back
to show the host enrollment status based on has_keytab attribute.

Ticket #2020
This commit is contained in:
Endi S. Dewata 2011-10-25 14:25:31 -05:00
parent f168afbeb6
commit 5773afad44
2 changed files with 40 additions and 25 deletions

View File

@ -31,7 +31,11 @@ IPA.entity_factories.host = function () {
search_facet({ search_facet({
columns: [ columns: [
'fqdn', 'fqdn',
'description' 'description',
{
name: 'has_keytab',
label: IPA.messages.objects.host.enrolled
}
] ]
}). }).
details_facet({ details_facet({

View File

@ -1,6 +1,6 @@
{ {
"error": null, "error": null,
"id": 0, "id": null,
"result": { "result": {
"count": 2, "count": 2,
"result": [ "result": [
@ -8,46 +8,44 @@
"cn": [ "cn": [
"dev.example.com" "dev.example.com"
], ],
"dn": "fqdn=dev.example.com,cn=computers,cn=accounts,dc=dev,dc=example,dc=com", "dn": "fqdn=dev.example.com,cn=computers,cn=accounts,dc=example,dc=com",
"enrolledby_user": [
"admin"
],
"fqdn": [ "fqdn": [
"dev.example.com" "dev.example.com"
], ],
"has_keytab": true,
"has_password": false,
"ipauniqueid": [ "ipauniqueid": [
"fc6a6d5a-f388-11df-9c01-00163e72f2d9" "d2c1f41c-ff41-11e0-bde8-525400e135d8"
], ],
"krbextradata": [ "krbextradata": [
{ {
"__base64__": "AAL+5+VMYWRtaW4vYWRtaW5AREVWLkVYQU1QTEUuQ09NAA==" "__base64__": "AAIIEqdOaG9zdC9kZXYuZXhhbXBsZS5jb21ASURNLkxBQi5CT1MuUkVESEFULkNPTQA="
},
{
"__base64__": "AAgBAA=="
} }
], ],
"krblastpwdchange": [ "krblastpwdchange": [
"20101119025910Z" "20111025194616Z"
],
"krbpasswordexpiration": [
"19700101000000Z"
], ],
"krbprincipalname": [ "krbprincipalname": [
"host/dev.example.com@DEV.EXAMPLE.COM" "host/dev.example.com@EXAMPLE.COM"
], ],
"krbticketflags": [ "managedby_host": [
"0" "dev.example.com"
], ],
"managedby": [ "managing_host": [
"fqdn=dev.example.com,cn=computers,cn=accounts,dc=dev,dc=example,dc=com" "dev.example.com"
], ],
"objectclass": [ "objectclass": [
"top",
"ipaobject", "ipaobject",
"nshost", "nshost",
"ipahost", "ipahost",
"ipaservice",
"pkiuser", "pkiuser",
"ipaservice",
"krbprincipalaux", "krbprincipalaux",
"krbprincipal", "krbprincipal",
"krbticketpolicyaux" "top"
], ],
"serverhostname": [ "serverhostname": [
"dev" "dev"
@ -57,18 +55,31 @@
"cn": [ "cn": [
"test.example.com" "test.example.com"
], ],
"dn": "fqdn=test.example.com,cn=computers,cn=accounts,dc=dev,dc=example,dc=com", "dn": "fqdn=test.example.com,cn=computers,cn=accounts,dc=example,dc=com",
"enrolledby_user": [
"admin"
],
"fqdn": [ "fqdn": [
"test.example.com" "test.example.com"
], ],
"has_keytab": false,
"has_password": false,
"ipauniqueid": [ "ipauniqueid": [
"ac28dca0-f3b5-11df-879f-00163e72f2d9" "d5d1400e-ff41-11e0-9a21-525400e135d8"
],
"krbextradata": [
{
"__base64__": "AAIiEqdOaG9zdC90ZXN0LmV4YW1wbGUuY29tQElETS5MQUIuQk9TLlJFREhBVC5DT00A"
}
], ],
"krbprincipalname": [ "krbprincipalname": [
"host/test.example.com@DEV.EXAMPLE.COM" "host/test.example.com@EXAMPLE.COM"
], ],
"managedby": [ "managedby_host": [
"fqdn=test.example.com,cn=computers,cn=accounts,dc=dev,dc=example,dc=com" "test.example.com"
],
"managing_host": [
"test.example.com"
], ],
"objectclass": [ "objectclass": [
"ipaobject", "ipaobject",