mei_rt2mei_rt2_fix_1
Last change
on this file since 2485307 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.3 KB
|
Rev | Line | |
---|
[9502c50] | 1 | |
---|
| 2 | # alumni_rt1_typed |
---|
[10e1588] | 3 | |
---|
[c469edf] | 4 | pwd=`pwd` |
---|
| 5 | |
---|
[5110d42] | 6 | eloc=${ABAC_PROVER_PATH} |
---|
[c469edf] | 7 | keyloc=$pwd |
---|
[10e1588] | 8 | |
---|
| 9 | stateU=`creddy --keyid --cert $keyloc/StateU_ID.pem` |
---|
| 10 | bob=`creddy --keyid --cert $keyloc/Bob_ID.pem` |
---|
| 11 | maryann=`creddy --keyid --cert $keyloc/Maryann_ID.pem` |
---|
| 12 | joe=`creddy --keyid --cert $keyloc/Joe_ID.pem` |
---|
| 13 | |
---|
[da5afdf] | 14 | stateU_foundingAlumni="[keyid:$stateU].role:foundingAlumni" |
---|
[10e1588] | 15 | bob_prin="[keyid:$bob]" |
---|
| 16 | maryann_prin="[keyid:$maryann]" |
---|
| 17 | joe_prin="[keyid:$joe]" |
---|
| 18 | |
---|
| 19 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Bob] (no) |
---|
| 20 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Maryann] (yes) |
---|
| 21 | |
---|
| 22 | ## dump all credentials |
---|
[e88c95b] | 23 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
[10e1588] | 24 | |
---|
[d5bbd3e] | 25 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Bob] (no) |
---|
[36b100a] | 26 | echo " " |
---|
[9502c50] | 27 | echo "===bad============ stateU.foundingAlumni <- Bob" |
---|
[10e1588] | 28 | $eloc/abac_prover_yap --keystore $keyloc --role "$stateU_foundingAlumni" --principal "$bob_prin" |
---|
| 29 | |
---|
| 30 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Maryann] (yes) |
---|
[da5afdf] | 31 | # asking, isMember(pMaryann,role(pStateU,foundingAlumni),C). |
---|
[36b100a] | 32 | echo " " |
---|
[9502c50] | 33 | echo "===good============ stateU.foundingAlumni <- Maryann" |
---|
[10e1588] | 34 | $eloc/abac_prover_yap --keystore $keyloc --role "$stateU_foundingAlumni" --principal "$maryann_prin" |
---|
| 35 | |
---|
| 36 | |
---|
[7b548fa] | 37 | # [keyid:stateU].role:foundingAlumni <-?- [keyid:Joe] (yes) |
---|
[2c01913] | 38 | echo " " |
---|
[9502c50] | 39 | echo "===good============ stateU.foundingAlumni <- Joe" |
---|
[2c01913] | 40 | $eloc/abac_prover_yap --keystore $keyloc --role "$stateU_foundingAlumni" --principal "$joe_prin" |
---|
| 41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.