From 16890a8c0ee6af63b6a54a8209bae4f2a095e644 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 11 Oct 2007 00:49:38 +0000 Subject: 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. --- server/wallet-backend | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'server') 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 . This ACL must no longer be referenced by any object or the ACL destruction will fail. The special ACL named C cannot be destroyed. +=item acl history + +Display the history of the ACL . 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 Remove the entry with and from the ACL . -- cgit v1.2.3