mei_rt2mei_rt2_fix_1
Last change
on this file since 5d1b6dc was
a7f03f3,
checked in by Mei <mei@…>, 12 years ago
|
1) add the new yap porting directory and some of code
2) add parital proof test code
|
-
Property mode set to
100755
|
File size:
464 bytes
|
Rev | Line | |
---|
[a7f03f3] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """ |
---|
| 4 | cmd1:env keystore=`pwd` ./query.py |
---|
| 5 | cmd2: env ABAC_CN=1 keystore=`pwd` ./query.py |
---|
| 6 | |
---|
| 7 | """ |
---|
| 8 | |
---|
| 9 | import os |
---|
| 10 | import ABAC |
---|
| 11 | |
---|
| 12 | ctxt = ABAC.Context() |
---|
| 13 | |
---|
| 14 | # Keystore is the directory containing the principal credentials. |
---|
| 15 | # Load existing principals and/or policy credentials |
---|
| 16 | if (os.environ.has_key("keystore")) : |
---|
| 17 | keystore=os.environ["keystore"] |
---|
| 18 | ctxt.load_directory(keystore) |
---|
| 19 | else: |
---|
| 20 | print("keystore is not set...") |
---|
| 21 | exit(1) |
---|
| 22 | |
---|
| 23 | ctxt.dump_yap_db() |
---|
| 24 | |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.