source: examples/balltime_rt2_typed/run_query @ 302f477

mei_rt2mei_rt2_fix_1meiyap-rt1rt2
Last change on this file since 302f477 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: 1.5 KB
Line 
1
2# balltime_rt2_typed
3
4pwd=`pwd`
5
6eloc=$pwd/../../libabac
7keyloc=$pwd
8
9league=`creddy --keyid --cert $keyloc/League_ID.pem`
10john=`creddy --keyid --cert $keyloc/John_ID.pem`
11mark=`creddy --keyid --cert $keyloc/Mark_ID.pem`
12
13stadium_accessT="[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T130000])"
14stadium_accessT2="[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T110000])"
15stadium_accessT3="[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T080000])"
16
17john_prin="[keyid:$john]"
18mark_prin="[keyid:$mark]"
19
20## dump all credentials
21$eloc/abac_prover_yap  --keystore $keyloc --dump creds_dump
22
23#[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T130000]) <-?- [keyid:john] (yes)
24echo " "
25echo "===good============ league.stadium(access,true,20120128T130000)<-?-john"
26$eloc/abac_prover_yap  --keystore $keyloc --role "$stadium_accessT" --principal "$john_prin"
27
28#[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T110000]) <-?- [keyid:mark] (no)
29echo " "
30echo "===bad============ league.stadium(access,true,20120128T110000)<-?-mark"
31$eloc/abac_prover_yap  --keystore $keyloc --role "$stadium_accessT2" --principal "$mark_prin"
32
33#[keyid:$league].role:stadium([string:'access'],[boolean:true],[time:20120228T080000]) <-?- [keyid:mark] (yes)
34echo " "
35echo "===good============ league.stadium(access,true,20120128T080000)<-?-mark"
36$eloc/abac_prover_yap  --keystore $keyloc --role "$stadium_accessT3" --principal "$mark_prin"
37
Note: See TracBrowser for help on using the repository browser.