abac0-leak
Last change
on this file since 8a9f7af was
3c30b59,
checked in by Mei <mei@…>, 11 years ago
|
1) add in new refactored regression testing directory
2) undo the abac.hh/ABAC.hh api changes
3) merged with Ted's changes to attribute format/nickname/issuer processing
|
-
Property mode set to
100755
|
File size:
783 bytes
|
Rev | Line | |
---|
[b7b2ca1] | 1 | #!/bin/sh |
---|
[92661b4] | 2 | # |
---|
| 3 | # This simple example makes use of 2 principals, IceCream and Chocolate. |
---|
| 4 | # |
---|
| 5 | # This example shows a very simple delegation of roles by IceCream. A |
---|
| 6 | # delicious flavor of IceCream is Chocolate. |
---|
| 7 | # |
---|
[d6d44fe] | 8 | # And, a query IceCream.delicious <-?- Chocolate is made (should succeed) |
---|
| 9 | # then, remove the issuer credential, IceCream, and repeat the query, |
---|
| 10 | # then, remove the principal credential, Chocolate, and repeat the query |
---|
| 11 | # |
---|
[b7b2ca1] | 12 | |
---|
| 13 | #IceCream.delicious <- Chocolate |
---|
| 14 | |
---|
| 15 | rm -rf *.pem *.xml |
---|
| 16 | |
---|
[3c30b59] | 17 | . ${TESTDIR}/test_util.sh |
---|
[b7b2ca1] | 18 | |
---|
| 19 | $eloc/creddy --generate --cn IceCream |
---|
| 20 | |
---|
| 21 | $eloc/creddy --generate --cn Chocolate |
---|
| 22 | |
---|
| 23 | $eloc/creddy --attribute \ |
---|
| 24 | --issuer IceCream_ID.pem --key IceCream_private.pem --role delicious \ |
---|
| 25 | --subject-cert Chocolate_ID.pem \ |
---|
| 26 | --out IceCream_delicious__Chocolate_attr.xml |
---|
Note: See
TracBrowser
for help on using the repository browser.