aboutsummaryrefslogtreecommitdiff
path: root/perl/Wallet/Config.pm
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-08-28 06:22:35 +0000
committerRuss Allbery <rra@stanford.edu>2007-08-28 06:22:35 +0000
commit3c3d5c870b45ba64b105742788384d8f83456a91 (patch)
tree2f71de3dd80aeb38e6c12726bd03bb195095314a /perl/Wallet/Config.pm
parent3c24b3a018dac170048d40419e1b00a78adaf5bb (diff)
Add the keytab object implementation. Add the skeleton of a config
module which currently doesn't do anything useful except define some variables so that I can do syntax checking.
Diffstat (limited to 'perl/Wallet/Config.pm')
-rw-r--r--perl/Wallet/Config.pm41
1 files changed, 41 insertions, 0 deletions
diff --git a/perl/Wallet/Config.pm b/perl/Wallet/Config.pm
new file mode 100644
index 0000000..6dd2313
--- /dev/null
+++ b/perl/Wallet/Config.pm
@@ -0,0 +1,41 @@
+# Wallet::Config -- Configuration handling for the wallet server.
+# $Id$
+#
+# Written by Russ Allbery <rra@stanford.edu>
+# Copyright 2007 Board of Trustees, Leland Stanford Jr. University
+#
+# See README for licensing terms.
+
+##############################################################################
+# Modules and declarations
+##############################################################################
+
+package Wallet::Config;
+require 5.006;
+
+use strict;
+use vars qw($PATH $VERSION);
+
+# This version should be increased on any code change to this module. Always
+# use two digits for the minor version with a leading zero if necessary so
+# that it will sort properly.
+$VERSION = '0.01';
+
+# Path to the config file to load.
+$PATH = '/etc/wallet.conf';
+
+##############################################################################
+# Variables
+##############################################################################
+
+# Configuration for the keytab object type.
+our $KEYTAB_FILE;
+our $KEYTAB_FLAGS = '-clearpolicy';
+our $KEYTAB_HOST;
+our $KEYTAB_KADMIN = 'kadmin';
+our $KEYTAB_PRINCIPAL;
+our $KEYTAB_REALM;
+our $KEYTAB_TMP;
+
+1;
+__END__