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:
938 bytes
|
Line | |
---|
1 | |
---|
2 | # alice_rt1_typed |
---|
3 | |
---|
4 | pwd=`pwd` |
---|
5 | |
---|
6 | eloc=${ABAC_PROVER_PATH} |
---|
7 | keyloc=$pwd |
---|
8 | |
---|
9 | alice=`creddy --keyid --cert Alice_ID.pem` |
---|
10 | party=`creddy --keyid --cert Party_ID.pem` |
---|
11 | tea=`creddy --keyid --cert Tea_ID.pem` |
---|
12 | hatter=`creddy --keyid --cert Hatter_ID.pem` |
---|
13 | marchhare=`creddy --keyid --cert MarchHare_ID.pem` |
---|
14 | dormouse=`creddy --keyid --cert Dormouse_ID.pem` |
---|
15 | |
---|
16 | party_guests="[keyid:$party].role:guests" |
---|
17 | dormouse_prin="[keyid:$dormouse]" |
---|
18 | hatter_prin="[keyid:$hatter]" |
---|
19 | |
---|
20 | ## dump all credentials |
---|
21 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
22 | |
---|
23 | #[keyid:Party].role:guests <-?- [keyid:dormouse] |
---|
24 | echo " " |
---|
25 | echo "===good============ Party.guests <- dourmouse" |
---|
26 | $eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$dormouse_prin" |
---|
27 | |
---|
28 | #[keyid:Party].role:guests <-?- [keyid:hatter] |
---|
29 | echo " " |
---|
30 | echo "===bad============ Party.guests <- hatter" |
---|
31 | $eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$hatter_prin" |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.