abac0-leakabac0-mei
Last change
on this file since 1afd681 was
1afd681,
checked in by Mei <mei@…>, 11 years ago
|
1) ready the 1.5 release..
2) tested out the new attribute features (nicknames), multiple GENI
attribute formats
3) polish up testing' build dir alittle bit more..
|
-
Property mode set to
100755
|
File size:
273 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | """ |
---|
3 | attr2.py |
---|
4 | """ |
---|
5 | import os |
---|
6 | import ABAC |
---|
7 | |
---|
8 | a = ABAC.ID("A", 24 * 3600 * 365 * 20) |
---|
9 | |
---|
10 | attr = ABAC.Attribute(a, "friendly_admin", 24 * 3600 * 365 * 20) |
---|
11 | attr.role(a.keyid(), "friendly") |
---|
12 | attr.role(a.keyid(), "admin") |
---|
13 | attr.bake() |
---|
14 | |
---|
15 | attr.write_file("attr.xml") |
---|
16 | |
---|
17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.