summaryrefslogtreecommitdiff
path: root/tests/data/wallet.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/wallet.conf')
-rw-r--r--tests/data/wallet.conf13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/data/wallet.conf b/tests/data/wallet.conf
index 7900d03..b864e5e 100644
--- a/tests/data/wallet.conf
+++ b/tests/data/wallet.conf
@@ -1,4 +1,4 @@
-# wallet.conf -- Test wallet server configuration.
+# wallet.conf -- Test wallet server configuration. -*- perl -*-
# $Id$
# Always test with SQLite.
@@ -8,4 +8,15 @@ $DB_INFO = 'wallet-db';
# Set up a file bucket.
$FILE_BUCKET = 'test-files';
+# Simple auto-creation rules.
+sub default_owner {
+ my ($type, $name) = @_;
+ my $principal = $ENV{REMOTE_USER};
+ if ($type eq 'file' and $name eq 'auto') {
+ return ('auto', [ 'krb5', $principal ]);
+ } else {
+ return;
+ }
+}
+
1;