source: examples/creddy_prover_tests/acme_friend_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.9 KB
Line 
1
2# acme_friend_rt1_typed
3
4pwd=`pwd`
5
6eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'`
7if [ "$eloc" = "" ]; then
8  echo "ERROR: abac_prover_yap is not in the search path!!!"
9  exit 1
10fi
11keyloc=$pwd
12
13roadrunner=`creddy --keyid --cert $keyloc/Roadrunner_ID.pem`
14acme=`creddy --keyid --cert $keyloc/Acme_ID.pem`
15coyote=`creddy --keyid --cert $keyloc/Coyote_ID.pem`
16jackrabbit=`creddy --keyid --cert $keyloc/Jackrabbit_ID.pem`
17
18friendof_roadrunner="[keyid:$acme].role:friendOf([keyid:$roadrunner])"
19coyote_prin="[keyid:$coyote]"
20badcoyote_prin="[keyid:bad]"
21preferred_customer="[keyid:$acme].role:preferred_customer"
22jackrabbit_prin="[keyid:$jackrabbit]"
23
24## dump all credentials
25$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
26
27#[keyid:Acme].role:friendof([keyid:Roadrunner]) <-?- [keyid:Coyote]
28echo "  "
29echo "===bad============ Acme.friendOf(Roadrunner) <- Coyote"
30$eloc/abac_prover_yap  --keystore $keyloc --role "$friendof_roadrunner" --principal "$coyote_prin"
31
32#[keyid:Acme].role:friendof([keyid:Roadrunner]) <-?- [keyid:Jackrabbit]
33echo "  "
34echo "===good============ Acme.friendOf(Roadrunner) <- Jackrabbit"
35$eloc/abac_prover_yap  --keystore $keyloc --role "$friendof_roadrunner" --principal "$jackrabbit_prin"
36
37#[keyid:Acme].role:preferred_customer <-?- [keyid:Jackrabbit]
38echo "  "
39echo "===good============ Acme.preferred_customer <- Jackrabbit"
40$eloc/abac_prover_yap  --keystore $keyloc --role "$preferred_customer" --principal "$jackrabbit_prin"
41
42#[keyid:Acme].role:preferred_customer <-?- [keyid:Coyote]
43echo "  "
44echo "===good============ Acme.preferred_customer <- Coyote"
45$eloc/abac_prover_yap  --keystore $keyloc --role "$preferred_customer" --principal "$coyote_prin"
46
47#[keyid:Acme].role:preferred_customer <-?- [keyid:badCoyote]
48echo "  "
49echo "===bad============ Acme.preferred_customer <- badCoyote"
50$eloc/abac_prover_yap  --keystore $keyloc --role "$preferred_customer" --principal "$badcoyote_prin"
51
52
Note: See TracBrowser for help on using the repository browser.