source: examples/creddy_prover_tests/evaluator_rt1/run_query @ 1621520

mei_rt2mei_rt2_fix_1
Last change on this file since 1621520 was 5110d42, checked in by Mei <mei@…>, 13 years ago

1) reorganized the test directory to include python tests
2) attribute via api and principal via api from python scripts is

working (although there is a annoying seg fault at the very end
that must be related to something not been dup()ed.. need to wait
for c example to debug it)

3) able to query via api
4) replicated access_rt2 example in python and the query result matches
5) expanded api to make it easier to generate rt2 structure

  • Property mode set to 100755
File size: 1.2 KB
RevLine 
[ab30fdd]1
2# evaluator_rt1_typed
3
4pwd=`pwd`
5
[5110d42]6eloc=${ABAC_PROVER_PATH}
[ab30fdd]7keyloc=$pwd
8
9isi=`creddy --keyid --cert ISI_ID.pem`
10usc=`creddy --keyid --cert USC_ID.pem`
11maryann=`creddy --keyid --cert Maryann_ID.pem`
12john=`creddy --keyid --cert John_ID.pem`
13
14usc_employee="[keyid:$usc].role:employee"
15usc_eval_maryann="[keyid:$usc].role:evaluatorOf([keyid:$maryann])"
16isi_manager_maryann="[keyid:$isi].role:managerOf([keyid:$maryann])"
17john_prin="[keyid:$john]"
18
19## dump all credentials
20$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
21
22#[keyid:USC].role:evaluatorOf([keyid:Maryann]) <-?- [keyid:John]
23echo " "
24echo "===good============ USC.evaluatorOf(Maryann) <- John"
25$eloc/abac_prover_yap  --keystore $keyloc --role "$usc_eval_maryann" --principal "$john_prin"
26
27#[keyid:ISI].role:managerOf([keyid:Maryann]) <-?- [keyid:John]
28echo " "
29echo "===good============ ISI.managerOf(Maryann) <- John"
30$eloc/abac_prover_yap  --keystore $keyloc --role "$isi_manager_maryann" --principal "$john_prin"
31
32
33#[keyid:USC].role:employee <- [keyid:John]"
34#USC.employee <-?- John
35echo " "
36echo "===good============  USC.employee <-?- John"
37$eloc/abac_prover_yap  --keystore $keyloc --role "$usc_employee" --principal "$john_prin"
38
39
Note: See TracBrowser for help on using the repository browser.