mei_rt2
Last change
on this file since b4b0d0a was
b4b0d0a,
checked in by Mei <mei@…>, 12 years ago
|
1) more tweaking..
|
-
Property mode set to
100755
|
File size:
613 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | """ |
---|
4 | dumpdb.py |
---|
5 | using python api |
---|
6 | |
---|
7 | """ |
---|
8 | |
---|
9 | print("=====================dumpdb.py==================") |
---|
10 | |
---|
11 | import os |
---|
12 | import ABAC |
---|
13 | |
---|
14 | ctxt = ABAC.Context() |
---|
15 | |
---|
16 | # Keystore is the directory containing the principal credentials. |
---|
17 | # Load existing principals and/or policy credentials |
---|
18 | if (os.environ.has_key("keystore")) : |
---|
19 | keystore=os.environ["keystore"] |
---|
20 | ctxt.load_directory(keystore) |
---|
21 | else: |
---|
22 | print("keystore is not set, using current directory...") |
---|
23 | ctxt.load_directory(".") |
---|
24 | |
---|
25 | ########################################################################## |
---|
26 | print("\n\n") |
---|
27 | ABAC.dump_yap_db() |
---|
28 | print("\n\n") |
---|
Note: See
TracBrowser
for help on using the repository browser.