aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorIan Durkacz <idurkacz@inf.ed.ac.uk>2010-06-29 15:30:51 -0700
committerRuss Allbery <rra@stanford.edu>2010-06-29 15:30:51 -0700
commitb573d6f433725afda0e4238f63a5b3485d1d56f4 (patch)
treef66b405b3d867e00f60e873e43d1ab128fa58f9f /server
parent1f324f37b95034b0137884f48bde3ed484f7f21c (diff)
Add a krb5-regex ACL type
Add the krb5-regex ACL type and corresponding Wallet::ACL::Krb5::Regex module. This ACL is identical to krb5 except that it takes a regular expression matching principals instead of a string that must match exactly.
Diffstat (limited to 'server')
-rwxr-xr-xserver/wallet-backend4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/wallet-backend b/server/wallet-backend
index 0a611db..52e9857 100755
--- a/server/wallet-backend
+++ b/server/wallet-backend
@@ -147,7 +147,7 @@ sub command {
if ($command eq 'acl') {
my $action = shift @args;
if ($action eq 'add') {
- check_args (3, 3, [], @args);
+ check_args (3, 3, [3], @args);
$server->acl_add (@args) or failure ($server->error, @_);
} elsif ($action eq 'create') {
check_args (1, 1, [], @args);
@@ -164,7 +164,7 @@ sub command {
failure ($server->error, @_);
}
} elsif ($action eq 'remove') {
- check_args (3, 3, [], @args);
+ check_args (3, 3, [3], @args);
$server->acl_remove (@args) or failure ($server->error, @_);
} elsif ($action eq 'rename') {
check_args (2, 2, [], @args);