mei_rt2mei_rt2_fix_1
Last change
on this file since 8de54ab was
08b8da7,
checked in by Mei <mei@…>, 12 years ago
|
1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there
|
-
Property mode set to
100755
|
File size:
1.4 KB
|
Rev | Line | |
---|
[8bd77b5] | 1 | |
---|
| 2 | # leader_rt1_typed |
---|
| 3 | |
---|
| 4 | pwd=`pwd` |
---|
[08b8da7] | 5 | eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'` |
---|
| 6 | if [ "$eloc" = "" ]; then |
---|
| 7 | echo "ERROR: abac_prover_yap is not in the search path!!!" |
---|
| 8 | exit 1 |
---|
| 9 | fi |
---|
[8bd77b5] | 10 | keyloc=$pwd |
---|
| 11 | |
---|
| 12 | geni=`creddy --keyid --cert $keyloc/Geni_ID.pem` |
---|
| 13 | bob=`creddy --keyid --cert $keyloc/Bob_ID.pem` |
---|
| 14 | jack=`creddy --keyid --cert $keyloc/Jack_ID.pem` |
---|
| 15 | joe=`creddy --keyid --cert $keyloc/Joe_ID.pem` |
---|
| 16 | |
---|
| 17 | geni_leader="[keyid:$geni].role:leader" |
---|
| 18 | bob_prin="[keyid:$bob]" |
---|
| 19 | jack_prin="[keyid:$jack]" |
---|
| 20 | joe_prin="[keyid:$joe]" |
---|
| 21 | |
---|
| 22 | # [keyid:geni].role:leader <-?- [keyid:Bob] (yes) |
---|
| 23 | # [keyid:geni].role:leader <-?- [keyid:Jack] (no) |
---|
| 24 | # [keyid:geni].role:leader <-?- [keyid:Joe] (yes) |
---|
| 25 | |
---|
| 26 | ## dump all credentials |
---|
| 27 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
| 28 | |
---|
| 29 | #double checking |
---|
| 30 | #creddy --roles --cert geni_leader__geni_leader_qP_attr.der |
---|
| 31 | |
---|
| 32 | # [keyid:geni].role:leader <-?- [keyid:Bob] (yes) |
---|
| 33 | echo " " |
---|
| 34 | echo "===yes============ geni.leader <- Bob" |
---|
| 35 | $eloc/abac_prover_yap --keystore $keyloc --role "$geni_leader" --principal "$bob_prin" |
---|
| 36 | |
---|
| 37 | # [keyid:geni].role:leader <-?- [keyid:Jack] (no) |
---|
| 38 | echo " " |
---|
| 39 | echo "===no============ geni.leader <- Jack" |
---|
| 40 | $eloc/abac_prover_yap --keystore $keyloc --role "$geni_leader" --principal "$jack_prin" |
---|
| 41 | |
---|
| 42 | # [keyid:geni].role:leader <-?- [keyid:Joe] (yes) |
---|
| 43 | echo " " |
---|
| 44 | echo "===yes============ geni.leader <- Joe" |
---|
| 45 | $eloc/abac_prover_yap --keystore $keyloc --role "$geni_leader" --principal "$joe_prin" |
---|
| 46 | |
---|
Note: See
TracBrowser
for help on using the repository browser.