source: examples/creddy_prover_tests/acme_friend_rt1/run_query @ 928b1b7

mei_rt2mei_rt2_fix_1
Last change on this file since 928b1b7 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
RevLine 
[da5afdf]1
[9502c50]2# acme_friend_rt1_typed
[da5afdf]3
[c469edf]4pwd=`pwd`
5
[08b8da7]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
[c469edf]11keyloc=$pwd
[718ad924]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
[da5afdf]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
[718ad924]26
[9502c50]27#[keyid:Acme].role:friendof([keyid:Roadrunner]) <-?- [keyid:Coyote]
[da5afdf]28echo "  "
[9502c50]29echo "===bad============ Acme.friendOf(Roadrunner) <- Coyote"
[da5afdf]30$eloc/abac_prover_yap  --keystore $keyloc --role "$friendof_roadrunner" --principal "$coyote_prin"
31
[9502c50]32#[keyid:Acme].role:friendof([keyid:Roadrunner]) <-?- [keyid:Jackrabbit]
[da5afdf]33echo "  "
[9502c50]34echo "===good============ Acme.friendOf(Roadrunner) <- Jackrabbit"
[da5afdf]35$eloc/abac_prover_yap  --keystore $keyloc --role "$friendof_roadrunner" --principal "$jackrabbit_prin"
[718ad924]36
[9502c50]37#[keyid:Acme].role:preferred_customer <-?- [keyid:Jackrabbit]
[da5afdf]38echo "  "
[9502c50]39echo "===good============ Acme.preferred_customer <- Jackrabbit"
[da5afdf]40$eloc/abac_prover_yap  --keystore $keyloc --role "$preferred_customer" --principal "$jackrabbit_prin"
[718ad924]41
[9502c50]42#[keyid:Acme].role:preferred_customer <-?- [keyid:Coyote]
[da5afdf]43echo "  "
[9502c50]44echo "===good============ Acme.preferred_customer <- Coyote"
[da5afdf]45$eloc/abac_prover_yap  --keystore $keyloc --role "$preferred_customer" --principal "$coyote_prin"
[718ad924]46
[9502c50]47#[keyid:Acme].role:preferred_customer <-?- [keyid:badCoyote]
[da5afdf]48echo "  "
[9502c50]49echo "===bad============ Acme.preferred_customer <- badCoyote"
[da5afdf]50$eloc/abac_prover_yap  --keystore $keyloc --role "$preferred_customer" --principal "$badcoyote_prin"
[718ad924]51
52
Note: See TracBrowser for help on using the repository browser.