Show disabled entries in gray.

The users, HBAC/sudo rules, HBAC test, and SELinux list pages have
been modified to show disabled entries in gray. Icons will be added
separately.

Ticket #1996
This commit is contained in:
Endi Sukma Dewata
2012-01-18 17:58:55 -06:00
committed by Petr Voborník
parent 7c0c39581c
commit fef343ae8f
14 changed files with 239 additions and 16 deletions

View File

@@ -52,6 +52,9 @@
"cn": [
"rule01"
],
"description": [
"Test HBAC Rule 01"
],
"dn": "ipauniqueid=ce568648-211c-11e1-8846-000c29e9f1b6,cn=hbac,dc=example,dc=com",
"hostcategory": [
"all"
@@ -88,6 +91,9 @@
"cn": [
"rule02"
],
"description": [
"Test HBAC Rule 02"
],
"dn": "ipauniqueid=d0133224-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
"hostcategory": [
"all"
@@ -124,6 +130,9 @@
"cn": [
"rule03"
],
"description": [
"Test HBAC Rule 03"
],
"dn": "ipauniqueid=d21db45e-211c-11e1-bef8-000c29e9f1b6,cn=hbac,dc=example,dc=com",
"hostcategory": [
"all"
@@ -160,6 +169,9 @@
"cn": [
"rule04"
],
"description": [
"Test HBAC Rule 04"
],
"dn": "ipauniqueid=d4209604-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
"hostcategory": [
"all"
@@ -196,6 +208,9 @@
"cn": [
"rule05"
],
"description": [
"Test HBAC Rule 05"
],
"dn": "ipauniqueid=d59dba70-211c-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
"hostcategory": [
"all"

View File

@@ -9,9 +9,15 @@
"karel_unconfined"
],
"dn": "ipauniqueid=dbe2ffa0-3c2c-11e1-ad81-00163e6185c4,cn=usermap,cn=selinux,dc=dev,dc=example,dc=com"
},
{
"cn": [
"test01"
],
"dn": "ipauniqueid=dbe2ffa0-3c2c-11e1-ad81-00163e6185c4,cn=usermap,cn=selinux,dc=dev,dc=example,dc=com"
}
],
"summary": "1 SELinux User Map matched",
"summary": "2 SELinux User Maps matched",
"truncated": false
}
}

View File

@@ -33,6 +33,36 @@
},
"summary": null,
"value": "karel_unconfined"
},
{
"error": null,
"result": {
"cn": [
"test01"
],
"description": [
"Test SELinux User Map 01"
],
"dn": "ipauniqueid=dbe2ffa0-3c2c-11e1-ad81-00163e6185c4,cn=usermap,cn=selinux,dc=dev,dc=example,dc=com",
"ipaenabledflag": [
"FALSE"
],
"ipaselinuxuser": [
"xguest_u:s0"
],
"ipauniqueid": [
"dbe2ffa0-3c2c-11e1-ad81-00163e6185c4"
],
"memberuser_user": [
"karel"
],
"objectclass": [
"ipaassociation",
"ipaselinuxusermap"
]
},
"summary": null,
"value": "test01"
}
]
}

View File

@@ -6,7 +6,13 @@
"result": [
{
"cn": [
"test"
"test01"
],
"dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=example,dc=com"
},
{
"cn": [
"test02"
],
"dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=example,dc=com"
}

View File

@@ -33,7 +33,10 @@
"usercategory": "rscwo"
},
"cn": [
"test"
"test01"
],
"description": [
"Test Sudo Rule 01"
],
"dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=example,dc=com",
"externalhost": [
@@ -90,7 +93,98 @@
]
},
"summary": null,
"value": "test"
"value": "test01"
},
{
"error": null,
"result": {
"attributelevelrights": {
"aci": "rscwo",
"cmdcategory": "rscwo",
"cn": "rscwo",
"description": "rscwo",
"externalhost": "rscwo",
"externaluser": "rscwo",
"hostcategory": "rscwo",
"hostmask": "rscwo",
"ipaenabledflag": "rscwo",
"ipasudoopt": "rscwo",
"ipasudorunas": "rscwo",
"ipasudorunasextgroup": "rscwo",
"ipasudorunasextuser": "rscwo",
"ipasudorunasgroup": "rscwo",
"ipasudorunasgroupcategory": "rscwo",
"ipasudorunasusercategory": "rscwo",
"ipauniqueid": "rsc",
"memberallowcmd": "rscwo",
"memberdenycmd": "rscwo",
"memberhost": "rscwo",
"memberuser": "rscwo",
"nsaccountlock": "rscwo",
"usercategory": "rscwo"
},
"cn": [
"test02"
],
"description": [
"Test Sudo Rule 02"
],
"dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=example,dc=com",
"externalhost": [
"external.example.com"
],
"externaluser": [
"external"
],
"ipaenabledflag": [
"FALSE"
],
"ipasudoopt": [
"-H",
"-b"
],
"ipasudorunas_user": [
"admin"
],
"ipasudorunasgroup_group": [
"admins"
],
"ipauniqueid": [
"4fc57a02-f23311df-b268e50e-a3b3ef71"
],
"memberallowcmd_sudocmd": [
"/usr/bin/less"
],
"memberallowcmd_sudocmdgroup": [
"group1"
],
"memberdenycmd_sudocmd": [
"/usr/bin/more"
],
"memberdenycmd_sudocmdgroup": [
"group1",
"group2"
],
"memberhost_host": [
"dev.example.com"
],
"memberhost_hostgroup": [
"production",
"staging"
],
"memberuser_group": [
"editors"
],
"memberuser_user": [
"test"
],
"objectclass": [
"ipaassociation",
"ipasudorule"
]
},
"summary": null,
"value": "test02"
}
]
}

View File

@@ -610,7 +610,7 @@
"mepmanagedentry": [
"cn=aortega,cn=groups,cn=accounts,dc=example,dc=com"
],
"nsaccountlock": false,
"nsaccountlock": true,
"objectclass": [
"top",
"person",
@@ -681,7 +681,7 @@
"mepmanagedentry": [
"cn=aortiz,cn=groups,cn=accounts,dc=example,dc=com"
],
"nsaccountlock": false,
"nsaccountlock": true,
"objectclass": [
"top",
"person",
@@ -1107,7 +1107,7 @@
"mepmanagedentry": [
"cn=bbauer,cn=groups,cn=accounts,dc=example,dc=com"
],
"nsaccountlock": false,
"nsaccountlock": true,
"objectclass": [
"top",
"person",