source: examples/alice_rt1_typed/run_query @ 5ae5719

mei_rt2mei_rt2_fix_1meiyap-rt1rt2
Last change on this file since 5ae5719 was 9502c50, checked in by Mei <mei@…>, 12 years ago

1) rename examples' rr to run_query
2) updated some doc
3) add decode to creddy --roles and creddy --display --show so it will

show more useful attribute rule string

4) stub in the python script in one of the example directory

  • Property mode set to 100755
File size: 937 bytes
RevLine 
[da5afdf]1
[9502c50]2# alice_rt1_typed
[da5afdf]3
[c469edf]4pwd=`pwd`
5
6eloc=$pwd/../../libabac
7keyloc=$pwd
[a9494ad]8
9alice=`creddy --keyid --cert Alice_ID.pem`
10party=`creddy --keyid --cert Party_ID.pem`
11tea=`creddy --keyid --cert Tea_ID.pem`
12hatter=`creddy --keyid --cert Hatter_ID.pem`
13marchhare=`creddy --keyid --cert MarchHare_ID.pem`
14dormouse=`creddy --keyid --cert Dormouse_ID.pem`
15
[da5afdf]16party_guests="[keyid:$party].role:guests"
17dormouse_prin="[keyid:$dormouse]"
18hatter_prin="[keyid:$hatter]"
19
20## dump all credentials
21$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
22
[9502c50]23#[keyid:Party].role:guests <-?- [keyid:dormouse]
[a9494ad]24echo "  "
[9502c50]25echo "===good============ Party.guests <- dourmouse"
[da5afdf]26$eloc/abac_prover_yap  --keystore $keyloc --role "$party_guests" --principal "$dormouse_prin"
[a9494ad]27
[9502c50]28#[keyid:Party].role:guests <-?- [keyid:hatter]
[0d0c3a9]29echo "  "
[9502c50]30echo "===bad============ Party.guests <- hatter"
[0d0c3a9]31$eloc/abac_prover_yap  --keystore $keyloc --role "$party_guests" --principal "$hatter_prin"
[9502c50]32
Note: See TracBrowser for help on using the repository browser.