mei_rt2
Last change
on this file since 54758a7 was
2e9455f,
checked in by Mei <mei@…>, 12 years ago
|
1) added namespace
2) tweak ?This,
3) allowing linking role/oset as constraining conditions
4) adding access_tests regression testing that uses GENI's access policy
5) added couple multi contexts regression tests
6) add compression/uncompression calls to abac_encode_string/abac_decode_string
(libstrongwan only allows 512 char for attribute rule storage)
7) add attribute_now option to creddy that takes a whole char string for attribute
rule
|
-
Property mode set to
100755
|
File size:
717 bytes
|
Rev | Line | |
---|
[669b481] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
[f824a9e] | 4 | See README for the semantics. This creates principals |
---|
| 5 | using ID and write out the credential file pair, cert/privkey |
---|
[669b481] | 6 | """ |
---|
| 7 | import os |
---|
| 8 | import ABAC |
---|
| 9 | |
---|
| 10 | ctxt = ABAC.Context() |
---|
| 11 | |
---|
| 12 | jackID=ABAC.ID("Jack", 0) |
---|
| 13 | jackID.id_write_cert("Jack_ID.pem") |
---|
| 14 | jackID.id_write_privkey("Jack_private.pem") |
---|
| 15 | |
---|
| 16 | bobID=ABAC.ID("Bob", 0) |
---|
| 17 | bobID.id_write_cert("Bob_ID.pem") |
---|
| 18 | bobID.id_write_privkey("Bob_private.pem") |
---|
| 19 | |
---|
[2e9455f] | 20 | markID=ABAC.ID("Mark2", 0) |
---|
| 21 | markID.id_write_privkey("Mark2_IDKEY.pem") |
---|
| 22 | markID.id_write_cert("Mark2_IDKEY.pem") |
---|
| 23 | |
---|
| 24 | johnID=ABAC.ID("John2", 0) |
---|
| 25 | johnID.id_write_cert("John2_other.pem") |
---|
| 26 | |
---|
| 27 | tomID=ABAC.ID("Tom2", 0) |
---|
| 28 | tomID.id_write_privkey("Tom2_IDKEY.pem") |
---|
| 29 | |
---|
| 30 | loriID=ABAC.ID("Lori2", 0) |
---|
| 31 | loriID.id_write_cert("Lori2_IDKEY.pem") |
---|
| 32 | |
---|
[669b481] | 33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.