aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-10-11 00:49:38 +0000
committerRuss Allbery <rra@stanford.edu>2007-10-11 00:49:38 +0000
commit16890a8c0ee6af63b6a54a8209bae4f2a095e644 (patch)
tree3c2c45c480cc804d5b50936e791459555b9b71e7 /server
parent32ec05c61136ceff5c6013f304e309c7abdd2fb0 (diff)
Add an acl history function to the server backend and the client
documentation and test it. Update NEWS and TODO for the completion of the history code.
Diffstat (limited to 'server')
-rwxr-xr-xserver/wallet-backend16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/wallet-backend b/server/wallet-backend
index 3f84ecd..ceb5b84 100755
--- a/server/wallet-backend
+++ b/server/wallet-backend
@@ -71,6 +71,14 @@ sub command {
} elsif ($action eq 'destroy') {
check_args (1, 1, [], @args);
$server->acl_destroy (@args) or die $server->error;
+ } elsif ($action eq 'history') {
+ check_args (1, 1, [], @args);
+ my $output = $server->acl_history (@args);
+ if (defined $output) {
+ print $output;
+ } else {
+ die $server->error;
+ }
} elsif ($action eq 'remove') {
check_args (3, 3, [], @args);
$server->acl_remove (@args) or die $server->error;
@@ -271,6 +279,14 @@ Destroy the ACL <id>. This ACL must no longer be referenced by any object
or the ACL destruction will fail. The special ACL named C<ADMIN> cannot
be destroyed.
+=item acl history <id>
+
+Display the history of the ACL <id>. Each change to the ACL (not
+including changes to the name of the ACL) will be represented by two
+lines. The first line will have a timestamp of the change followed by a
+description of the change, and the second line will give the user who made
+the change and the host from which the change was mde.
+
=item acl remove <id> <scheme> <identifier>
Remove the entry with <scheme> and <identifier> from the ACL <id>. <id>