source: examples/README @ 7727f26

mei_rt2mei_rt2_fix_1meiyap-rt1rt2
Last change on this file since 7727f26 was 7727f26, checked in by Mei <mei@…>, 12 years ago

1) add environment variables DUMP_DB, ABAC_CN.

ABAC_CN will switch to using CNs for keyid insead of SHAs

2) add/modified couple of doc files.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1
2Example directories
3
4This directory contains various ABAC scenario that exercises
5various feature of the current implmentation with YAP prolog db.
6
7The frontend query client is abac_yap_prover.
8
9Each subdirectory has a README script which includes a description
10of the scenario and the calls that are needed to generate the
11credentials. There is a rr script which sets up and run couple
12of typical query using abac_yap_prover.
13
14runall, is the top level script that will cleanup and setup the
15credentials needed in each subdirectories
16
17runcheck, is the top level script that initiate the run_query script
18within each subdirectories; capture the result and diff with the
19baseline output in allout.save.
20
21abac_yap_prover
22
23Usage: abac_prover_yap
24        --keystore <keystore>
25        --role <keyid.role> --principal <keyid>
26        --oset <keyid.oset> --object <otype>
27    loads the keystore and runs the query role <-?- principal
28                                the query oset <-?- object
29        --dump <file>
30    extracts all credentials from the prolog db
31
32keystore is the location where the prover will search for credentials.
33All accessible iden credentials and attribute credentials will be
34picked up one file at a time.
35
36role, oset, principal, and object are specified with principal's SHA
37value extracted from keystore location using creddy. Example can be found
38in the rr script.
39
40An actual example from balltime_rt2_typed is here,
41abac_prover_yap --keystore /home/mei/Deter/abac/examples/balltime_rt2_typed
42  --role [keyid:212146063d65264e8f27c31f0da592e386fc59aa].role:stadium
43                 ([string:'access'],[boolean:true],[time:20120228T130000])
44  --principal [keyid:49bdcd1278fce71d7c5cb3ee9138c22f7379e8e0]
45
46Currently, the dump option might fail if not enough information is
47stored in the backend db. It will be reimplemented in the near future.
48
49Two useful environment variables,
50
51DUMP_DB, extract the complete yap db to stdout
52ABAC_CN, use CN instead of SHA value for identifying the principal keyid. This
53is useful for debugging purpose but will not resolve conflict when CN is not
54uniquely associated with each principal SHA value.
55
56env ABAC_CN=1 runall run
57or
58env DUMP_DB=1 ABAC_CN=1 rr
59
60
61
62
Note: See TracBrowser for help on using the repository browser.