source: examples/creddy_prover_tests/leader_rt1/run_query @ 340bd01

mei_rt2mei_rt2_fix_1
Last change on this file since 340bd01 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
Line 
1
2# leader_rt1_typed
3
4pwd=`pwd`
5eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'`
6if [ "$eloc" = "" ]; then
7  echo "ERROR: abac_prover_yap is not in the search path!!!"
8  exit 1
9fi
10keyloc=$pwd
11
12geni=`creddy --keyid --cert $keyloc/Geni_ID.pem`
13bob=`creddy --keyid --cert $keyloc/Bob_ID.pem`
14jack=`creddy --keyid --cert $keyloc/Jack_ID.pem`
15joe=`creddy --keyid --cert $keyloc/Joe_ID.pem`
16
17geni_leader="[keyid:$geni].role:leader"
18bob_prin="[keyid:$bob]"
19jack_prin="[keyid:$jack]"
20joe_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)
33echo " "
34echo "===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)
38echo " "
39echo "===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)
43echo " "
44echo "===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.