mei_rt2mei_rt2_fix_1
Last change
on this file since 7c5d673 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
|
Line | |
---|
1 | |
---|
2 | # evaluator_rt1_typed |
---|
3 | |
---|
4 | pwd=`pwd` |
---|
5 | |
---|
6 | eloc=${ABAC_PROVER_PATH} |
---|
7 | keyloc=$pwd |
---|
8 | |
---|
9 | isi=`creddy --keyid --cert ISI_ID.pem` |
---|
10 | usc=`creddy --keyid --cert USC_ID.pem` |
---|
11 | maryann=`creddy --keyid --cert Maryann_ID.pem` |
---|
12 | john=`creddy --keyid --cert John_ID.pem` |
---|
13 | |
---|
14 | usc_employee="[keyid:$usc].role:employee" |
---|
15 | usc_eval_maryann="[keyid:$usc].role:evaluatorOf([keyid:$maryann])" |
---|
16 | isi_manager_maryann="[keyid:$isi].role:managerOf([keyid:$maryann])" |
---|
17 | john_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] |
---|
23 | echo " " |
---|
24 | echo "===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] |
---|
28 | echo " " |
---|
29 | echo "===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 |
---|
35 | echo " " |
---|
36 | echo "===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.