summaryrefslogtreecommitdiffstats
path: root/install/ui/test
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-12-09 17:22:37 +0200
committerAlexander Bokovoy <abokovoy@redhat.com>2011-12-09 17:22:37 +0200
commit0e45fb9ab1c639a43d0e50aadc5ff3bcaa096ba9 (patch)
treeb8e1724aa6cc911a6e899474a5f4a037a046f8f0 /install/ui/test
parentd738b6e71808b1611bc67cb4764153977b444584 (diff)
parentc1baebe97990a65076da02b112fe139422c44e97 (diff)
downloadfreeipa.git-0e45fb9ab1c639a43d0e50aadc5ff3bcaa096ba9.tar.gz
freeipa.git-0e45fb9ab1c639a43d0e50aadc5ff3bcaa096ba9.tar.xz
freeipa.git-0e45fb9ab1c639a43d0e50aadc5ff3bcaa096ba9.zip
Merge branch 'master' of git+ssh://git.fedorahosted.org/git/freeipa
Diffstat (limited to 'install/ui/test')
-rw-r--r--install/ui/test/data/hbacrule_find_pkeys.json122
-rw-r--r--install/ui/test/data/hbacrule_get_records.json578
-rw-r--r--install/ui/test/data/hbactest.json24
-rw-r--r--install/ui/test/data/hbactest_matched.json408
-rw-r--r--install/ui/test/data/hbactest_unmatched.json249
-rw-r--r--install/ui/test/data/sudorule_get_records.json79
6 files changed, 1411 insertions, 49 deletions
diff --git a/install/ui/test/data/hbacrule_find_pkeys.json b/install/ui/test/data/hbacrule_find_pkeys.json
index 9f3021b5..ae74c7de 100644
--- a/install/ui/test/data/hbacrule_find_pkeys.json
+++ b/install/ui/test/data/hbacrule_find_pkeys.json
@@ -2,28 +2,136 @@
"error": null,
"id": null,
"result": {
- "count": 3,
+ "count": 21,
"result": [
{
"cn": [
"allow_all"
],
- "dn": "ipauniqueid=ca842a42-a445-11e0-87ff-525400b55a47,cn=hbac,dc=dev,dc=example,dc=com"
+ "dn": "ipauniqueid=007ff62a-20fc-11e1-b5f6-000c29e9f1b6,cn=hbac,dc=example,dc=com"
},
{
"cn": [
- "rule1"
+ "rule01"
],
- "dn": "ipauniqueid=4ed8b682-edf511df-b3f78f4b-11cc007b,cn=hbac,dc=dev,dc=example,dc=com"
+ "dn": "ipauniqueid=ce568648-211c-11e1-8846-000c29e9f1b6,cn=hbac,dc=example,dc=com"
},
{
"cn": [
- "rule2"
+ "rule02"
],
- "dn": "ipauniqueid=12e2e4ba-120d-11e1-bbf7-525400e135d8,cn=hbac,dc=dev,dc=example,dc=com"
+ "dn": "ipauniqueid=d0133224-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule03"
+ ],
+ "dn": "ipauniqueid=d21db45e-211c-11e1-bef8-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule04"
+ ],
+ "dn": "ipauniqueid=d4209604-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule05"
+ ],
+ "dn": "ipauniqueid=d59dba70-211c-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule06"
+ ],
+ "dn": "ipauniqueid=d7d49c8c-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule07"
+ ],
+ "dn": "ipauniqueid=da048e36-211c-11e1-a6a9-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule08"
+ ],
+ "dn": "ipauniqueid=e15223c4-211c-11e1-b9de-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule09"
+ ],
+ "dn": "ipauniqueid=e324f8c0-211c-11e1-9eb4-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule10"
+ ],
+ "dn": "ipauniqueid=e5161178-211c-11e1-b2b4-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule11"
+ ],
+ "dn": "ipauniqueid=e70cf4c4-211c-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule12"
+ ],
+ "dn": "ipauniqueid=f18be298-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule13"
+ ],
+ "dn": "ipauniqueid=f449a204-211c-11e1-aad4-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule14"
+ ],
+ "dn": "ipauniqueid=f792fd84-211c-11e1-9cac-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule15"
+ ],
+ "dn": "ipauniqueid=fef03790-211c-11e1-bd50-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule16"
+ ],
+ "dn": "ipauniqueid=015f362a-211d-11e1-8e68-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule17"
+ ],
+ "dn": "ipauniqueid=124d7690-211d-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule18"
+ ],
+ "dn": "ipauniqueid=145e2d30-211d-11e1-b05c-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule19"
+ ],
+ "dn": "ipauniqueid=17685668-211d-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com"
+ },
+ {
+ "cn": [
+ "rule20"
+ ],
+ "dn": "ipauniqueid=19537b06-211d-11e1-9569-000c29e9f1b6,cn=hbac,dc=example,dc=com"
}
],
- "summary": "3 HBAC rules matched",
+ "summary": "21 HBAC rules matched",
"truncated": false
}
}
diff --git a/install/ui/test/data/hbacrule_get_records.json b/install/ui/test/data/hbacrule_get_records.json
index 743885de..2ae32f52 100644
--- a/install/ui/test/data/hbacrule_get_records.json
+++ b/install/ui/test/data/hbacrule_get_records.json
@@ -2,7 +2,7 @@
"error": null,
"id": null,
"result": {
- "count": 3,
+ "count": 20,
"results": [
{
"error": null,
@@ -16,13 +16,20 @@
"description": [
"Allow all users to access any host from any host"
],
- "dn": "ipauniqueid=ca842a42-a445-11e0-87ff-525400b55a47,cn=hbac,dc=dev,dc=example,dc=com",
+ "dn": "ipauniqueid=007ff62a-20fc-11e1-b5f6-000c29e9f1b6,cn=hbac,dc=example,dc=com",
"hostcategory": [
"all"
],
"ipaenabledflag": [
"TRUE"
],
+ "ipauniqueid": [
+ "007ff62a-20fc-11e1-b5f6-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
"servicecategory": [
"all"
],
@@ -43,44 +50,70 @@
"allow"
],
"cn": [
- "rule1"
+ "rule01"
],
- "description": [
- "Test Rule"
+ "dn": "ipauniqueid=ce568648-211c-11e1-8846-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
],
- "dn": "ipauniqueid=4ed8b682-edf511df-b3f78f4b-11cc007b,cn=hbac,dc=dev,dc=example,dc=com",
"ipaenabledflag": [
"TRUE"
],
- "memberhost_host": [
- "dev.example.com"
+ "ipauniqueid": [
+ "ce568648-211c-11e1-8846-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule01"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule02"
],
- "memberhost_hostgroup": [
- "production"
+ "dn": "ipauniqueid=d0133224-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
],
- "memberservice_hbacsvc": [
- "ftp",
- "sshd"
+ "ipaenabledflag": [
+ "TRUE"
],
- "memberservice_hbacsvcgroup": [
- "sudo"
+ "ipauniqueid": [
+ "d0133224-211c-11e1-b881-000c29e9f1b6"
],
- "memberuser_group": [
- "editors"
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
],
- "memberuser_user": [
- "admin",
- "test"
+ "servicecategory": [
+ "all"
],
- "sourcehost_host": [
- "dev.example.com"
+ "sourcehostcategory": [
+ "all"
],
- "sourcehost_hostgroup": [
- "staging"
+ "usercategory": [
+ "all"
]
},
"summary": null,
- "value": "rule1"
+ "value": "rule02"
},
{
"error": null,
@@ -89,33 +122,502 @@
"allow"
],
"cn": [
- "rule2"
+ "rule03"
],
- "description": [
- "Test Rule"
+ "dn": "ipauniqueid=d21db45e-211c-11e1-bef8-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "d21db45e-211c-11e1-bef8-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule03"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule04"
+ ],
+ "dn": "ipauniqueid=d4209604-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
],
- "dn": "ipauniqueid=12e2e4ba-120d-11e1-bbf7-525400e135d8,cn=hbac,dc=dev,dc=example,dc=com",
"ipaenabledflag": [
"FALSE"
],
- "memberhost_host": [
- "test.example.com"
+ "ipauniqueid": [
+ "d4209604-211c-11e1-9192-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule04"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule05"
+ ],
+ "dn": "ipauniqueid=d59dba70-211c-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "d59dba70-211c-11e1-9ce3-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
],
- "memberhost_hostgroup": [
- "staging"
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule05"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule06"
+ ],
+ "dn": "ipauniqueid=d7d49c8c-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "d7d49c8c-211c-11e1-9192-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule06"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule07"
+ ],
+ "dn": "ipauniqueid=da048e36-211c-11e1-a6a9-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "da048e36-211c-11e1-a6a9-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule07"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule08"
+ ],
+ "dn": "ipauniqueid=e15223c4-211c-11e1-b9de-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
],
- "memberuser_group": [
- "ipausers"
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e15223c4-211c-11e1-b9de-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
],
"servicecategory": [
"all"
],
- "sourcehost_host": [
- "test.example.com"
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule08"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule09"
+ ],
+ "dn": "ipauniqueid=e324f8c0-211c-11e1-9eb4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e324f8c0-211c-11e1-9eb4-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule09"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule10"
+ ],
+ "dn": "ipauniqueid=e5161178-211c-11e1-b2b4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e5161178-211c-11e1-b2b4-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule10"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule11"
+ ],
+ "dn": "ipauniqueid=e70cf4c4-211c-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e70cf4c4-211c-11e1-bb9f-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule11"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule12"
+ ],
+ "dn": "ipauniqueid=f18be298-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "f18be298-211c-11e1-b881-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule12"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule13"
+ ],
+ "dn": "ipauniqueid=f449a204-211c-11e1-aad4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "f449a204-211c-11e1-aad4-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule13"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule14"
+ ],
+ "dn": "ipauniqueid=f792fd84-211c-11e1-9cac-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "f792fd84-211c-11e1-9cac-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule14"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule15"
+ ],
+ "dn": "ipauniqueid=fef03790-211c-11e1-bd50-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "fef03790-211c-11e1-bd50-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule15"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule16"
+ ],
+ "dn": "ipauniqueid=015f362a-211d-11e1-8e68-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "FALSE"
+ ],
+ "ipauniqueid": [
+ "015f362a-211d-11e1-8e68-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule16"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule17"
+ ],
+ "dn": "ipauniqueid=124d7690-211d-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "FALSE"
+ ],
+ "ipauniqueid": [
+ "124d7690-211d-11e1-9ce3-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule17"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule18"
+ ],
+ "dn": "ipauniqueid=145e2d30-211d-11e1-b05c-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "145e2d30-211d-11e1-b05c-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule18"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule19"
+ ],
+ "dn": "ipauniqueid=17685668-211d-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "17685668-211d-11e1-bb9f-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
]
},
"summary": null,
- "value": "rule2"
+ "value": "rule19"
}
]
}
diff --git a/install/ui/test/data/hbactest.json b/install/ui/test/data/hbactest.json
index 38565eeb..7a71dfef 100644
--- a/install/ui/test/data/hbactest.json
+++ b/install/ui/test/data/hbactest.json
@@ -5,12 +5,30 @@
"error": null,
"matched": [
"allow_all",
- "rule1"
+ "rule01",
+ "rule02",
+ "rule03",
+ "rule04",
+ "rule05",
+ "rule06",
+ "rule07",
+ "rule08",
+ "rule09",
+ "rule10"
],
"notmatched": [
- "rule2"
+ "rule11",
+ "rule12",
+ "rule13",
+ "rule14",
+ "rule15",
+ "rule16",
+ "rule17",
+ "rule18",
+ "rule19",
+ "rule20"
],
"summary": "Access granted: True",
"value": true
}
-} \ No newline at end of file
+}
diff --git a/install/ui/test/data/hbactest_matched.json b/install/ui/test/data/hbactest_matched.json
new file mode 100644
index 00000000..f83481ee
--- /dev/null
+++ b/install/ui/test/data/hbactest_matched.json
@@ -0,0 +1,408 @@
+{
+ "error": null,
+ "id": null,
+ "result": {
+ "count": 11,
+ "results": [
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "allow_all"
+ ],
+ "description": [
+ "Allow all users to access any host from any host"
+ ],
+ "dn": "ipauniqueid=007ff62a-20fc-11e1-b5f6-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "007ff62a-20fc-11e1-b5f6-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "allow_all"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule01"
+ ],
+ "dn": "ipauniqueid=ce568648-211c-11e1-8846-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "ce568648-211c-11e1-8846-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule01"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule02"
+ ],
+ "dn": "ipauniqueid=d0133224-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "d0133224-211c-11e1-b881-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule02"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule03"
+ ],
+ "dn": "ipauniqueid=d21db45e-211c-11e1-bef8-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "d21db45e-211c-11e1-bef8-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule03"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule04"
+ ],
+ "dn": "ipauniqueid=d4209604-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "FALSE"
+ ],
+ "ipauniqueid": [
+ "d4209604-211c-11e1-9192-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule04"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule05"
+ ],
+ "dn": "ipauniqueid=d59dba70-211c-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "d59dba70-211c-11e1-9ce3-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule05"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule06"
+ ],
+ "dn": "ipauniqueid=d7d49c8c-211c-11e1-9192-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "d7d49c8c-211c-11e1-9192-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule06"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule07"
+ ],
+ "dn": "ipauniqueid=da048e36-211c-11e1-a6a9-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "da048e36-211c-11e1-a6a9-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule07"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule08"
+ ],
+ "dn": "ipauniqueid=e15223c4-211c-11e1-b9de-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e15223c4-211c-11e1-b9de-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule08"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule09"
+ ],
+ "dn": "ipauniqueid=e324f8c0-211c-11e1-9eb4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e324f8c0-211c-11e1-9eb4-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule09"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule10"
+ ],
+ "dn": "ipauniqueid=e5161178-211c-11e1-b2b4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "hostcategory": [
+ "all"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e5161178-211c-11e1-b2b4-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ],
+ "servicecategory": [
+ "all"
+ ],
+ "sourcehostcategory": [
+ "all"
+ ],
+ "usercategory": [
+ "all"
+ ]
+ },
+ "summary": null,
+ "value": "rule10"
+ }
+ ]
+ }
+}
diff --git a/install/ui/test/data/hbactest_unmatched.json b/install/ui/test/data/hbactest_unmatched.json
new file mode 100644
index 00000000..1086cd72
--- /dev/null
+++ b/install/ui/test/data/hbactest_unmatched.json
@@ -0,0 +1,249 @@
+{
+ "error": null,
+ "id": null,
+ "result": {
+ "count": 10,
+ "results": [
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule11"
+ ],
+ "dn": "ipauniqueid=e70cf4c4-211c-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "e70cf4c4-211c-11e1-bb9f-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule11"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule12"
+ ],
+ "dn": "ipauniqueid=f18be298-211c-11e1-b881-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "f18be298-211c-11e1-b881-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule12"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule13"
+ ],
+ "dn": "ipauniqueid=f449a204-211c-11e1-aad4-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "f449a204-211c-11e1-aad4-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule13"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule14"
+ ],
+ "dn": "ipauniqueid=f792fd84-211c-11e1-9cac-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "f792fd84-211c-11e1-9cac-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule14"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule15"
+ ],
+ "dn": "ipauniqueid=fef03790-211c-11e1-bd50-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "fef03790-211c-11e1-bd50-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule15"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule16"
+ ],
+ "dn": "ipauniqueid=015f362a-211d-11e1-8e68-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "FALSE"
+ ],
+ "ipauniqueid": [
+ "015f362a-211d-11e1-8e68-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule16"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule17"
+ ],
+ "dn": "ipauniqueid=124d7690-211d-11e1-9ce3-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "FALSE"
+ ],
+ "ipauniqueid": [
+ "124d7690-211d-11e1-9ce3-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule17"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule18"
+ ],
+ "dn": "ipauniqueid=145e2d30-211d-11e1-b05c-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "145e2d30-211d-11e1-b05c-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule18"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule19"
+ ],
+ "dn": "ipauniqueid=17685668-211d-11e1-bb9f-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "ipauniqueid": [
+ "17685668-211d-11e1-bb9f-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule19"
+ },
+ {
+ "error": null,
+ "result": {
+ "accessruletype": [
+ "allow"
+ ],
+ "cn": [
+ "rule20"
+ ],
+ "dn": "ipauniqueid=19537b06-211d-11e1-9569-000c29e9f1b6,cn=hbac,dc=example,dc=com",
+ "ipaenabledflag": [
+ "FALSE"
+ ],
+ "ipauniqueid": [
+ "19537b06-211d-11e1-9569-000c29e9f1b6"
+ ],
+ "objectclass": [
+ "ipaassociation",
+ "ipahbacrule"
+ ]
+ },
+ "summary": null,
+ "value": "rule20"
+ }
+ ]
+ }
+}
diff --git a/install/ui/test/data/sudorule_get_records.json b/install/ui/test/data/sudorule_get_records.json
index b0d82b88..1c740edd 100644
--- a/install/ui/test/data/sudorule_get_records.json
+++ b/install/ui/test/data/sudorule_get_records.json
@@ -7,10 +7,87 @@
{
"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": [
"test"
],
- "dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=dev,dc=example,dc=com"
+ "dn": "ipauniqueid=4fc57a02-f23311df-b268e50e-a3b3ef71,cn=sudorules,cn=sudo,dc=dev,dc=example,dc=com",
+ "externalhost": [
+ "external.example.com"
+ ],
+ "externaluser": [
+ "external"
+ ],
+ "ipaenabledflag": [
+ "TRUE"
+ ],
+ "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": "test"