source: examples/python_tests/alumni3_ctxt_rt1/setup.py @ 2e9455f

mei_rt2
Last change on this file since 2e9455f was 2e9455f, checked in by Mei <mei@…>, 11 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: 778 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates many principals
5used by the example.
6"""
7import os
8import ABAC
9
10ctxt = ABAC.Context()
11
12stateU=ABAC.ID("StateU", 0)
13stateU.id_write_cert("StateU_ID.pem")
14stateU.id_write_privkey("StateU_private.pem")
15
16bob=ABAC.ID("Bob", 0)
17bob.id_write_cert("Bob_ID.pem")
18bob.id_write_privkey("Bob_private.pem")
19
20mark=ABAC.ID("Mark", 0)
21mark.id_write_cert("Mark_ID.pem")
22mark.id_write_privkey("Mark_private.pem")
23
24joe=ABAC.ID("Joe", 0)
25joe.id_write_cert("Joe_ID.pem")
26joe.id_write_privkey("Joe_private.pem")
27
28maryann=ABAC.ID("Maryann", 0)
29maryann.id_write_cert("Maryann_ID.pem")
30maryann.id_write_privkey("Maryann_private.pem")
31
32jan=ABAC.ID("Jan", 0)
33jan.id_write_cert("Jan_ID.pem")
34jan.id_write_privkey("Jan_private.pem")
35
36
37
Note: See TracBrowser for help on using the repository browser.