mei_rt2mei_rt2_fix_1
Last change
on this file since 4b46680 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
|
Rev | Line | |
---|
[8bd77b5] | 1 | |
---|
| 2 | # leader_rt1_typed |
---|
| 3 | |
---|
| 4 | pwd=`pwd` |
---|
| 5 | |
---|
[5110d42] | 6 | eloc=${ABAC_PROVER_PATH} |
---|
[8bd77b5] | 7 | keyloc=$pwd |
---|
| 8 | |
---|
| 9 | geni=`creddy --keyid --cert $keyloc/Geni_ID.pem` |
---|
| 10 | bob=`creddy --keyid --cert $keyloc/Bob_ID.pem` |
---|
| 11 | jack=`creddy --keyid --cert $keyloc/Jack_ID.pem` |
---|
| 12 | joe=`creddy --keyid --cert $keyloc/Joe_ID.pem` |
---|
| 13 | |
---|
| 14 | geni_leader="[keyid:$geni].role:leader" |
---|
| 15 | bob_prin="[keyid:$bob]" |
---|
| 16 | jack_prin="[keyid:$jack]" |
---|
| 17 | joe_prin="[keyid:$joe]" |
---|
| 18 | |
---|
| 19 | # [keyid:geni].role:leader <-?- [keyid:Bob] (yes) |
---|
| 20 | # [keyid:geni].role:leader <-?- [keyid:Jack] (no) |
---|
| 21 | # [keyid:geni].role:leader <-?- [keyid:Joe] (yes) |
---|
| 22 | |
---|
| 23 | ## dump all credentials |
---|
| 24 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
| 25 | |
---|
| 26 | #double checking |
---|
| 27 | #creddy --roles --cert geni_leader__geni_leader_qP_attr.der |
---|
| 28 | |
---|
| 29 | # [keyid:geni].role:leader <-?- [keyid:Bob] (yes) |
---|
| 30 | echo " " |
---|
| 31 | echo "===yes============ geni.leader <- Bob" |
---|
| 32 | $eloc/abac_prover_yap --keystore $keyloc --role "$geni_leader" --principal "$bob_prin" |
---|
| 33 | |
---|
| 34 | # [keyid:geni].role:leader <-?- [keyid:Jack] (no) |
---|
| 35 | echo " " |
---|
| 36 | echo "===no============ geni.leader <- Jack" |
---|
| 37 | $eloc/abac_prover_yap --keystore $keyloc --role "$geni_leader" --principal "$jack_prin" |
---|
| 38 | |
---|
| 39 | # [keyid:geni].role:leader <-?- [keyid:Joe] (yes) |
---|
| 40 | echo " " |
---|
| 41 | echo "===yes============ geni.leader <- Joe" |
---|
| 42 | $eloc/abac_prover_yap --keystore $keyloc --role "$geni_leader" --principal "$joe_prin" |
---|
| 43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.