]> eyrie.org Git - kerberos/wallet.git/log
kerberos/wallet.git
10 years agoAdd changelog for upstream password randomization debian/1.0-5
Russ Allbery [Thu, 9 Jan 2014 22:05:26 +0000 (14:05 -0800)]
Add changelog for upstream password randomization

Change-Id: I368bb1ffc8a9f3aad0a9ea96c268f21dbf6db5d8

10 years agoRandomize the password on Heimdal principal creation
Russ Allbery [Thu, 9 Jan 2014 02:16:21 +0000 (18:16 -0800)]
Randomize the password on Heimdal principal creation

When creating new principals in a Heimdal KDC, generate a long, random
password as the temporary password of the disabled principal before
randomizing keys.  This is necessary if password quality is being
enforced on create calls.  Since the principal is always inactive
until the keys have been randomized, the password should not need to
be secure (and indeed is not cryptographically random).

Change-Id: If519a82475bb0d387a19d16ef1e024b0da64779a
Reviewed-on: https://gerrit.stanford.edu/1374
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
Conflicts:
NEWS

10 years agoAdd changelog for cherry-picked test fix debian/1.0-4
Russ Allbery [Tue, 7 Jan 2014 05:34:19 +0000 (21:34 -0800)]
Add changelog for cherry-picked test fix

10 years agoFix test skip count in the verifier-ldap-attr test
Russ Allbery [Tue, 7 Jan 2014 05:32:14 +0000 (21:32 -0800)]
Fix test skip count in the verifier-ldap-attr test

When the correct Kerberos tickets aren't available, this test
skipped the wrong number of tests.

Change-Id: Icf27178fe88027f38764285bb671560e051f9105
Reviewed-on: https://gerrit.stanford.edu/1373
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
10 years agoAdd additional dependencies for the test suite
Russ Allbery [Tue, 7 Jan 2014 05:24:25 +0000 (21:24 -0800)]
Add additional dependencies for the test suite

* Add libauthen-sasl-perl and libnet-ldap-perl to Build-Depends for the
  test suite.

10 years agoAdd changelog for cherry-picked wallet-rekey fix
Russ Allbery [Tue, 7 Jan 2014 05:16:45 +0000 (21:16 -0800)]
Add changelog for cherry-picked wallet-rekey fix

10 years agoFix wallet-rekey on keytabs containing multiple principals
Russ Allbery [Tue, 7 Jan 2014 05:09:00 +0000 (21:09 -0800)]
Fix wallet-rekey on keytabs containing multiple principals

Fix wallet-rekey on keytabs containing multiple principals.  Previous
versions assumed one could concatenate keytab files together to make a
valid keytab file, which doesn't work with some Kerberos libraries.
This caused new keys downloaded for principals after the first to be
discarded.  As a side effect of this fix, wallet-rekey always appends
new keys directly to the existing keytab file, and never creates a
backup copy of that file.

Change-Id: I5f863239ce4ebba66b35ff09454f2897367bd359
Reviewed-on: https://gerrit.stanford.edu/1369
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
10 years agoFinalize changes for 1.0-3 debian/1.0-3
Russ Allbery [Tue, 5 Nov 2013 21:17:58 +0000 (13:17 -0800)]
Finalize changes for 1.0-3

Change-Id: I5b10208b0b164e39242cf20ed4bd57398a3b9898

10 years agoDepend on the DateTime::Format::* modules
Russ Allbery [Tue, 5 Nov 2013 21:17:07 +0000 (13:17 -0800)]
Depend on the DateTime::Format::* modules

* Move the DateTime::Format::* Perl modules for various databases to
  Depends from Recommends and add the Pg and MySQL versions as
  alternatives.

Change-Id: I39ea83bb2dc2d2042ba539895738e0fd9b362254

10 years agoAdd changelog for upstream cherry-picks
Russ Allbery [Tue, 5 Nov 2013 20:36:54 +0000 (12:36 -0800)]
Add changelog for upstream cherry-picks

Change-Id: I8f4b7b7798ee34271c5bfc1b46733a3649064192

10 years agoFix several bugs in Wallet::Object::Keytab enctype handling
Russ Allbery [Tue, 16 Apr 2013 03:47:41 +0000 (20:47 -0700)]
Fix several bugs in Wallet::Object::Keytab enctype handling

There was a missing resultset() call in one place and the wrong
resultset used in a different place, causing the enctype management
code to not work.

Change-Id: I796169c5968ec164f90f3cd75541dd346dd50fdf
Reviewed-on: https://gerrit.stanford.edu/1070
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
10 years agoACL.pm: Fix a place where the acl history was getting raw timestamp
Jon Robertson [Thu, 17 Oct 2013 05:37:20 +0000 (22:37 -0700)]
ACL.pm: Fix a place where the acl history was getting raw timestamp

The acl_history table needed to get the DateTime object rather than the
raw epoch timestamp in one place.  This was causing errors adding new
lines to the history.

Change-Id: I9c971819484cd0b26cb2561549246c284afc55a1
Reviewed-on: https://gerrit.stanford.edu/1325
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
10 years agoChanged postgres schema file to remove reference
Jon Robertson [Thu, 17 Oct 2013 05:35:34 +0000 (22:35 -0700)]
Changed postgres schema file to remove reference

The reference from object_history to the objects table needed to be
removed.  We still want the relationship in the DBIx::Class files, but
we don't want the relationship enforced as we want to keep history
entries for deleted objects.

Change-Id: Id927404b996fe171a8f5fc0747ccb0abddcbe1f2
Reviewed-on: https://gerrit.stanford.edu/1324
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd changelog for cherry-picked t/admin.t fixes debian/1.0-2
Russ Allbery [Fri, 29 Mar 2013 20:58:45 +0000 (13:58 -0700)]
Add changelog for cherry-picked t/admin.t fixes

Change-Id: Ic1a9420955614c67cfc4e5e01e0b7f0458569a81

11 years agoMake t/admin.t test robust against missing sqlite3 binary
Russ Allbery [Fri, 29 Mar 2013 20:56:45 +0000 (13:56 -0700)]
Make t/admin.t test robust against missing sqlite3 binary

If we can't find the sqlite3 binary, just skip the upgrade test.

Reviewed-on: https://gerrit.stanford.edu/994
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 15fea5552df18667b39fce620488ed6c48bd7329)

Change-Id: I26cd8148d58368767f39d135afe4c721652b0740

11 years agoadmin.t: Fixed problem with not upgrading from unversioned db
Jon Robertson [Fri, 29 Mar 2013 06:53:52 +0000 (23:53 -0700)]
admin.t: Fixed problem with not upgrading from unversioned db

Since we were reinstalling a fresh database via the same DBIx::Class
functions, the database we installed to upgrade from a non-versioned
setup was still getting a version table.  Switched to delete the
database and reload it fresh from the sqlite3 command itself.

Reviewed-on: https://gerrit.stanford.edu/993
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
(cherry picked from commit 2a8fb416b5eb2db697e03ddce930c21656ccbc88)

Change-Id: If097c6edff916746e332e04c8d479a858a5773c4

11 years agoReally finalize the date of the 1.0-1 release debian/1.0-1
Russ Allbery [Thu, 28 Mar 2013 03:06:26 +0000 (20:06 -0700)]
Really finalize the date of the 1.0-1 release

Change-Id: I8a40fcaaa2a5effdea495ecc2f6a03a63543e0b9

11 years agoMerge tag 'upstream/1.0' into debian
Russ Allbery [Thu, 28 Mar 2013 02:24:28 +0000 (19:24 -0700)]
Merge tag 'upstream/1.0' into debian

Upstream version 1.0

11 years agoImported Upstream version 1.0 upstream/1.0
Russ Allbery [Thu, 28 Mar 2013 02:24:19 +0000 (19:24 -0700)]
Imported Upstream version 1.0

11 years agoFix return status of Wallet::Schema release/1.0
Russ Allbery [Thu, 28 Mar 2013 02:16:15 +0000 (19:16 -0700)]
Fix return status of Wallet::Schema

The module wasn't always returning a true value when loaded.

Change-Id: I998ab25509cb9079034cae6aca467024ec6b4949
Reviewed-on: https://gerrit.stanford.edu/990
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoUpdate release date for 1.0-1
Russ Allbery [Thu, 28 Mar 2013 02:07:39 +0000 (19:07 -0700)]
Update release date for 1.0-1

Change-Id: I2e52bb9184bc5939421a93d7a2ef9a9f4716711c

11 years agoMerge tag 'upstream/1.0' into debian
Russ Allbery [Thu, 28 Mar 2013 02:06:58 +0000 (19:06 -0700)]
Merge tag 'upstream/1.0' into debian

Upstream version 1.0

11 years agoImported Upstream version 1.0
Russ Allbery [Thu, 28 Mar 2013 02:06:50 +0000 (19:06 -0700)]
Imported Upstream version 1.0

11 years agoAccept any characters in the argument to the comment command
Russ Allbery [Thu, 28 Mar 2013 01:23:27 +0000 (18:23 -0700)]
Accept any characters in the argument to the comment command

It's nice to have spaces and other special characters in comments,
so allow any character rather than applying the normal argument
filtering.

Change-Id: Iec8584f1f6893906db7245fbe571d62ebc60f72a
Reviewed-on: https://gerrit.stanford.edu/989
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoCheck for uninstalled files, install SQL files
Russ Allbery [Thu, 28 Mar 2013 00:45:42 +0000 (17:45 -0700)]
Check for uninstalled files, install SQL files

* Check for any files left uninstalled by dh_install.

Also install all the SQL files used for database upgrades into the
wallet-server package properly.

Change-Id: I18711d26b88cf4bcbae036f20c11f911deb02e4f

11 years agoFinalize changes for 1.0-1
Russ Allbery [Thu, 28 Mar 2013 00:38:21 +0000 (17:38 -0700)]
Finalize changes for 1.0-1

Change-Id: I43cf7f76af475d0588df09feb982bc6bbe65061c

11 years agoVersion the Suggests of libwebauth-perl
Russ Allbery [Thu, 28 Mar 2013 00:33:34 +0000 (17:33 -0700)]
Version the Suggests of libwebauth-perl

Only WebAuth 4.4.0 and later has the APIs that we need.

Change-Id: Icf72987f1c79baf607a0bb4aca69d0730423a10a

11 years agoMerge tag 'upstream/1.0' into debian
Russ Allbery [Thu, 28 Mar 2013 00:33:10 +0000 (17:33 -0700)]
Merge tag 'upstream/1.0' into debian

Upstream version 1.0

11 years agoImported Upstream version 1.0
Russ Allbery [Thu, 28 Mar 2013 00:33:01 +0000 (17:33 -0700)]
Imported Upstream version 1.0

11 years agoAdd NEWS entry and doc reference to Wallet::Policy::Stanford
Russ Allbery [Thu, 28 Mar 2013 00:27:39 +0000 (17:27 -0700)]
Add NEWS entry and doc reference to Wallet::Policy::Stanford

Change-Id: If833e4a6434362e04e738274a6f7fb276a9efe51
Reviewed-on: https://gerrit.stanford.edu/988
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoSkip the wa-keyring tests if WebAuth is too old
Russ Allbery [Thu, 28 Mar 2013 00:23:45 +0000 (17:23 -0700)]
Skip the wa-keyring tests if WebAuth is too old

If the WebAuth module is too old, don't just fail the tests.  Skip
them instead.  This will let the Debian package build in unstable.

Change-Id: I84c97f23ff7fbf89f2fd797898ebb4ab5e58eee6
Reviewed-on: https://gerrit.stanford.edu/987
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd dependencies and changelog for new wa-keyring object type
Russ Allbery [Wed, 27 Mar 2013 23:29:18 +0000 (16:29 -0700)]
Add dependencies and changelog for new wa-keyring object type

Change-Id: I9923e3ec986dc7e17e0d251044dbf4d5acf936c2

11 years agoMerge tag 'upstream/1.0' into debian
Russ Allbery [Wed, 27 Mar 2013 23:28:35 +0000 (16:28 -0700)]
Merge tag 'upstream/1.0' into debian

Upstream version 1.0

11 years agoImported Upstream version 1.0
Russ Allbery [Wed, 27 Mar 2013 23:28:26 +0000 (16:28 -0700)]
Imported Upstream version 1.0

11 years agoRegister the wa-keyring object handler by default
Russ Allbery [Wed, 27 Mar 2013 23:14:40 +0000 (16:14 -0700)]
Register the wa-keyring object handler by default

In Wallet::Admin, add the wa-keyring object handler to the list
of initializations when creating a new database.

Change-Id: I804b47ae712ce3d96c57699fb2ba05c45f687881
Reviewed-on: https://gerrit.stanford.edu/986
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoDocument the new WebAuth keyring object type
Russ Allbery [Wed, 27 Mar 2013 23:13:24 +0000 (16:13 -0700)]
Document the new WebAuth keyring object type

Add a mention to NEWS and to the REQUIREMENTS section of README.

Change-Id: I560f737e9cb899046f7fe3c8d2c8c648d31041e7
Reviewed-on: https://gerrit.stanford.edu/985
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoFix typo in libdbix-class-perl build dependency
Russ Allbery [Wed, 27 Mar 2013 23:06:41 +0000 (16:06 -0700)]
Fix typo in libdbix-class-perl build dependency

Change-Id: If1a37b9db9c0696824375415aa835fcfb5d63f2e

11 years agoxz compression is for the binary packages as well
Russ Allbery [Wed, 27 Mar 2013 23:01:17 +0000 (16:01 -0700)]
xz compression is for the binary packages as well

Change-Id: I8eba193b08417931ff4127b46db5857fe622edce

11 years agoTag all packages as Multi-Arch: foreign
Russ Allbery [Wed, 27 Mar 2013 22:55:07 +0000 (15:55 -0700)]
Tag all packages as Multi-Arch: foreign

Change-Id: I51e95968f7249ad99f6d9d58e9a8dc90808be348

11 years agoConvert debian/copyright to copyright-format 1.0
Russ Allbery [Wed, 27 Mar 2013 22:54:04 +0000 (15:54 -0700)]
Convert debian/copyright to copyright-format 1.0

Change-Id: Ib9d7558bea7425b9c9bdcf0b41133332c39c8b4c

11 years agoUpdate to debhelper V9, enable hardening, parallel builds
Russ Allbery [Wed, 27 Mar 2013 22:51:58 +0000 (15:51 -0700)]
Update to debhelper V9, enable hardening, parallel builds

* Update debhelper compatibility level to V9.
  - Enable all hardening build flags.
  - Enable parallel builds.

Change-Id: I816acdcf5a204fddc909f78e3db39493e7c2321e

11 years agoUpdate standards version, indicate Debian packaging branch
Russ Allbery [Wed, 27 Mar 2013 22:49:27 +0000 (15:49 -0700)]
Update standards version, indicate Debian packaging branch

* Update standards version to 3.9.4.
  - Indicate the Debian packaging branch in the Vcs-Git header.

Change-Id: I6deab025fba1ddee262e93f6bf053e833a955f48

11 years agoSwitch to xz compression for the upstream and Debian tarballs
Russ Allbery [Wed, 27 Mar 2013 22:48:29 +0000 (15:48 -0700)]
Switch to xz compression for the upstream and Debian tarballs

Change-Id: I40985143bac4f0d27a1648e0f8559c62347c8067

11 years agoMove single-debian-patch to local-options
Russ Allbery [Wed, 27 Mar 2013 22:34:47 +0000 (15:34 -0700)]
Move single-debian-patch to local-options

* Move single-debian-patch to local-options and patch-header to
  local-patch-header so that they only apply to the packages I build and
  NMUs get regular version-numbered patches.

Change-Id: I8c0fe6bd544fafca774feebde7664b8cf975cfeb

11 years agoAdd new build and runtime dependencies for the server
Russ Allbery [Wed, 27 Mar 2013 22:27:03 +0000 (15:27 -0700)]
Add new build and runtime dependencies for the server

Change-Id: I7839114ff0977add6f30642295265b8cd5a48631

11 years agoAdd upstream changelog for 1.0
Russ Allbery [Wed, 27 Mar 2013 22:23:59 +0000 (15:23 -0700)]
Add upstream changelog for 1.0

Change-Id: If1e8679a3c808121bbe33f71cea58675e5aadfe4

11 years agoMerge tag 'upstream/1.0' into debian
Russ Allbery [Wed, 27 Mar 2013 22:19:54 +0000 (15:19 -0700)]
Merge tag 'upstream/1.0' into debian

Upstream version 1.0

11 years agoImported Upstream version 1.0
Russ Allbery [Wed, 27 Mar 2013 22:19:46 +0000 (15:19 -0700)]
Imported Upstream version 1.0

11 years agoAdd more missing files from the distribution
Russ Allbery [Wed, 27 Mar 2013 22:08:50 +0000 (15:08 -0700)]
Add more missing files from the distribution

Change-Id: I17a6661d8088de66dbdab04c0a3dc6e10a7913ca
Reviewed-on: https://gerrit.stanford.edu/984
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoFix test skip counts for some of the Perl tests
Russ Allbery [Wed, 27 Mar 2013 22:02:23 +0000 (15:02 -0700)]
Fix test skip counts for some of the Perl tests

Change-Id: Ic0f33bf01936a093a645bedd5adfa771fd4e3574
Reviewed-on: https://gerrit.stanford.edu/983
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd Perl SQL files to the distribution
Russ Allbery [Wed, 27 Mar 2013 21:55:30 +0000 (14:55 -0700)]
Add Perl SQL files to the distribution

Change-Id: Ia131200709531645b47d3bbab065d688e94f211f
Reviewed-on: https://gerrit.stanford.edu/982
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd tests/data/perl.conf to the distribution
Russ Allbery [Wed, 27 Mar 2013 21:49:26 +0000 (14:49 -0700)]
Add tests/data/perl.conf to the distribution

Used by the new POD tests (and eventually by other things).

Change-Id: I9704bc287f8d61fb87af99d53d836900f589c557
Reviewed-on: https://gerrit.stanford.edu/981
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd Wallet::Schema::Result::* classes to the distribution
Russ Allbery [Wed, 27 Mar 2013 21:42:06 +0000 (14:42 -0700)]
Add Wallet::Schema::Result::* classes to the distribution

Also fix some of the Makefile.am formatting of escaped multi-line
commands.

Change-Id: I024b5a8836cb8c8e3c4154e87c83be8d05a0e5f0
Reviewed-on: https://gerrit.stanford.edu/980
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd the Test::RRA::* modules to the distribution
Russ Allbery [Wed, 27 Mar 2013 21:39:52 +0000 (14:39 -0700)]
Add the Test::RRA::* modules to the distribution

Change-Id: I316a35a9ca7c1305650f7bd4d90b31caf9e054f9
Reviewed-on: https://gerrit.stanford.edu/979
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd tests/tap/macros.h to the libtap sources
Russ Allbery [Wed, 27 Mar 2013 21:32:35 +0000 (14:32 -0700)]
Add tests/tap/macros.h to the libtap sources

Change-Id: Iaaacf0df45f9ac5f2158d7c9bb695a856bcffd81
Reviewed-on: https://gerrit.stanford.edu/978
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoRemove obsolete files from the distribution
Russ Allbery [Wed, 27 Mar 2013 21:07:31 +0000 (14:07 -0700)]
Remove obsolete files from the distribution

Remove tests/data/README (now moved to tests/config) and perl/t/schema.t
(rolled into admin.t).  Add tests/config/README.

Change-Id: I632c5c97064299ac5a63c53b78c5abbd1dd364d6
Reviewed-on: https://gerrit.stanford.edu/977
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoRelease 1.0
Russ Allbery [Wed, 27 Mar 2013 20:59:07 +0000 (13:59 -0700)]
Release 1.0

Change-Id: Idf9876ef781340ec45e113fd555a0f2c5f05a3a9
Reviewed-on: https://gerrit.stanford.edu/976
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd NEWS entry for the DBIx::Class transition
Russ Allbery [Wed, 27 Mar 2013 20:58:03 +0000 (13:58 -0700)]
Add NEWS entry for the DBIx::Class transition

Change-Id: Ie8ee7f8b2f430ca9b5f38d2e060659f48dacc35f
Reviewed-on: https://gerrit.stanford.edu/975
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd new requirements for the server backend
Russ Allbery [Wed, 27 Mar 2013 20:55:48 +0000 (13:55 -0700)]
Add new requirements for the server backend

Now that we're using DBIx::Class, we need several new modules.  Take
a first cut at documenting them in README.

Change-Id: I98e796091258633daaad4049d14bf3c5ea1e55fa
Reviewed-on: https://gerrit.stanford.edu/974
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAllow owners of objects to destroy them by default
Russ Allbery [Wed, 27 Mar 2013 19:51:46 +0000 (12:51 -0700)]
Allow owners of objects to destroy them by default

Owners of wallet objects are now allowed to destroy them.  In previous
versions, a special destroy ACL had to be set and the owner ACL wasn't
used for destroy actions, but operational experience at Stanford has
shown that letting owners destroy their own objects is a better model.

Change-Id: I0e97d7a000e62cf5321add7b44140db6edc6769f
Reviewed-on: https://gerrit.stanford.edu/973
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd additional stopwords for POD spelling tests
Russ Allbery [Wed, 27 Mar 2013 19:45:17 +0000 (12:45 -0700)]
Add additional stopwords for POD spelling tests

aspell doesn't like some of the words used in the Expat license.

Change-Id: Ia31b41c54dcec3b50dbfb2ae7318574997c5d8ca
Reviewed-on: https://gerrit.stanford.edu/972
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoUpdate LICENSE to the Debian copyright-format 1.0 format
Russ Allbery [Thu, 28 Feb 2013 00:47:34 +0000 (16:47 -0800)]
Update LICENSE to the Debian copyright-format 1.0 format

Change-Id: I8310a94d25c403298520795f2a2087dd1f00f183
Reviewed-on: https://gerrit.stanford.edu/857
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoRemove a stray period from Test::RRA::* copyright statements
Russ Allbery [Thu, 28 Feb 2013 00:30:59 +0000 (16:30 -0800)]
Remove a stray period from Test::RRA::* copyright statements

This confuses build-license and makes it think this is a separate
copyright holder.

Change-Id: I91f4e9e6f6eed478918cd84f4158544b0c050c30
Reviewed-on: https://gerrit.stanford.edu/856
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd a license statement to perl/create-ddl
Russ Allbery [Thu, 28 Feb 2013 00:30:51 +0000 (16:30 -0800)]
Add a license statement to perl/create-ddl

Change-Id: I8933551ed4518264b258580edeb12048d0e2969e
Reviewed-on: https://gerrit.stanford.edu/855
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd copyright and license statements to SQL files
Russ Allbery [Thu, 28 Feb 2013 00:30:40 +0000 (16:30 -0800)]
Add copyright and license statements to SQL files

Change-Id: I58f7c06233823068f7ff65058219e27c0b733967
Reviewed-on: https://gerrit.stanford.edu/854
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoFix some formatting issues in the POD for create-ddl
Russ Allbery [Thu, 28 Feb 2013 00:24:04 +0000 (16:24 -0800)]
Fix some formatting issues in the POD for create-ddl

Use a proper list for the options, use italics for the argument
to an option, specify that argument in the SYNOPSIS, and use bold
for the name of the program.

Change-Id: I225aea061efd13851b62046ff6dcbda0cb9478ec
Reviewed-on: https://gerrit.stanford.edu/853
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd standard headers to the Wallet::Schema::* classes
Russ Allbery [Thu, 28 Feb 2013 00:17:01 +0000 (16:17 -0800)]
Add standard headers to the Wallet::Schema::* classes

Change-Id: Iee8d55f6c86563fad71d770398e3221f7efb4b2e
Reviewed-on: https://gerrit.stanford.edu/852
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd missing license statement to client/krb5.c
Russ Allbery [Thu, 28 Feb 2013 00:08:09 +0000 (16:08 -0800)]
Add missing license statement to client/krb5.c

Change-Id: I6c055a010c52b5c666db203a8c990c531cd1dfe4
Reviewed-on: https://gerrit.stanford.edu/851
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd explicit license statements to all POD documentation
Russ Allbery [Wed, 27 Feb 2013 23:49:46 +0000 (15:49 -0800)]
Add explicit license statements to all POD documentation

For scripts, do this by moving the copyright and license statement
from the top of the script into the POD documentation.

Also try to uniformly put the SEE ALSO section last.

Change-Id: Id31a5c0d5e6f6831a689deec41a13d35bb40465a
Reviewed-on: https://gerrit.stanford.edu/850
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd license statements to all textual documentation in docs
Russ Allbery [Wed, 27 Feb 2013 23:41:10 +0000 (15:41 -0800)]
Add license statements to all textual documentation in docs

Change-Id: Id5af9714e3d4f516cf7391c869eff89521e145c5
Reviewed-on: https://gerrit.stanford.edu/849
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoUpdate test configuration documentation
Russ Allbery [Wed, 27 Feb 2013 23:35:32 +0000 (15:35 -0800)]
Update test configuration documentation

Remove the old tests/data/README documentation and move the note
about krb5.conf into tests/config/README.  (This should change later
to use tests/config for that file.)  Add a license statement to that
file.  Create an empty tests/config directory in the build tree if
the build directory is not the source directory.

Change-Id: Idf466e32cd114841c45f58dba47b11282467ec8f
Reviewed-on: https://gerrit.stanford.edu/848
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd explicit license statement to perl/t/data/README
Russ Allbery [Wed, 27 Feb 2013 23:35:10 +0000 (15:35 -0800)]
Add explicit license statement to perl/t/data/README

Change-Id: Ibad85d6d7c653b557e9ec297a4268068261271fa
Reviewed-on: https://gerrit.stanford.edu/847
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoUpdate tests/HOWTO from C TAP Harness 1.12
Russ Allbery [Wed, 27 Feb 2013 23:31:44 +0000 (15:31 -0800)]
Update tests/HOWTO from C TAP Harness 1.12

Change-Id: Icd7381f4fbe3699dbd6e5459ddb59548f60e56a4
Reviewed-on: https://gerrit.stanford.edu/846
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoReformat README in my current format, add LICENSE
Russ Allbery [Wed, 27 Feb 2013 23:30:32 +0000 (15:30 -0800)]
Reformat README in my current format, add LICENSE

Add new SUPPORT and SOURCE REPOSITORY sections, reformat the copyright
and license information a bit, and add a new LICENSE section with the
general package license.

Change-Id: I7201519f18626c26686e7c81b51124c4d5581814
Reviewed-on: https://gerrit.stanford.edu/845
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoMark the LDAP verifier test as maintainer-only
Russ Allbery [Wed, 27 Feb 2013 23:17:50 +0000 (15:17 -0800)]
Mark the LDAP verifier test as maintainer-only

This currently requires global read access to the Stanford LDAP
directory, so even other people at Stanford can't run it.  Will
revisit when we have a chance to write mock LDAP classes.

Change-Id: I0e944b8019744b14a62e60d5dcc662b417108722
Reviewed-on: https://gerrit.stanford.edu/844
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoDrop use of concat in favor of xasprintf
Russ Allbery [Wed, 27 Feb 2013 22:54:05 +0000 (14:54 -0800)]
Drop use of concat in favor of xasprintf

Change-Id: I6a84920b0c0dc1849af8a34ecf8f3fb70b45e17c
Reviewed-on: https://gerrit.stanford.edu/843
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoUse correct form of Stanford's copyright statement
Russ Allbery [Wed, 27 Feb 2013 22:46:47 +0000 (14:46 -0800)]
Use correct form of Stanford's copyright statement

Change-Id: I06dd9ecca19315179bdd34d4b301548fe7604331
Reviewed-on: https://gerrit.stanford.edu/842
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoUpdate to rra-c-util 4.8 and C TAP Harness 1.12
Russ Allbery [Wed, 27 Feb 2013 22:25:37 +0000 (14:25 -0800)]
Update to rra-c-util 4.8 and C TAP Harness 1.12

Update to rra-c-util 4.8:

* Look for krb5-config in /usr/kerberos/bin after the user's PATH.
* Kerberos library probing fixes without transitive shared libraries.
* Fix Autoconf warnings when probing for AIX's bundled Kerberos.
* Avoid using krb5-config if --with-{krb5,gssapi}-{include,lib} given.
* Correctly remove -I/usr/include from Kerberos and GSS-API flags.
* Build on systems where krb5/krb5.h exists but krb5.h does not.
* Pass --deps to krb5-config unless --enable-reduced-depends was used.
* Do not use krb5-config results unless gssapi is supported.
* Fix probing for Heimdal's libroken to work with older versions.
* Update warning flags for GCC 4.6.1.
* Update utility library and test suite for newer GCC warnings.
* Fix broken GCC attribute markers causing compilation problems.
* Suppress warnings on compilers that support gcc's __attribute__.
* Add notices to all files copied over from rra-c-util.
* Fix warnings when reporting memory allocation failure in messages.c.
* Fix message utility library compiler warnings on 64-bit systems.
* Include strings.h for additional POSIX functions where found.
* Use an atexit handler to clean up after Kerberos tests.
* Kerberos test configuration now goes in tests/config.
* The principal of the test keytab is determined automatically.
* Simplify the test suite calls for Kerberos and remctl tests.
* Check for a missing ssize_t.
* Improve the xstrndup utility function.
* Checked asprintf variants are now void functions and cannot fail.
* Fix use of long long in portable/mkstemp.c.
* Fix test suite portability to Solaris.
* Substantial improvements to the POD syntax and spelling checks.

Update to C TAP Harness 1.12:

* Fix compliation of runtests with more aggressive warnings.
* Add a more complete usage message and a -h command-line flag.
* Flush stderr before printing output from tests.
* Better handle running shell tests without BUILD and SOURCE set.
* Fix runtests to honor -s even if BUILD and -b aren't given.
* runtests now frees all allocated resources on exit.
* Only use feature-test macros when requested or built with gcc -ansi.
* Drop is_double from the C TAP library to avoid requiring -lm.
* Avoid using local in the shell libtap.sh library.
* Suppress warnings on compilers that support gcc's __attribute__.

Change-Id: I394294d5486ac1ce265c7713bec71a148aaaf1ce
Reviewed-on: https://gerrit.stanford.edu/841
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoCheck for errors when renaming new keytab
Russ Allbery [Wed, 27 Feb 2013 22:21:48 +0000 (14:21 -0800)]
Check for errors when renaming new keytab

When linking the temporary keytab to its final file name, wallet wasn't
checking for errors.  Caught by the new gcc warnings.

Change-Id: Ia75b231754bafc800e9e521345b85da256c95ed1
Reviewed-on: https://gerrit.stanford.edu/840
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd stopwords for new Wallet::Schema classes
Russ Allbery [Wed, 27 Feb 2013 22:21:22 +0000 (14:21 -0800)]
Add stopwords for new Wallet::Schema classes

Change-Id: I48984226f67ded5539f6bc8c8cd88cfa770be775
Reviewed-on: https://gerrit.stanford.edu/839
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd stopwords for POD documentation of contrib/* scripts
Russ Allbery [Wed, 27 Feb 2013 21:50:35 +0000 (13:50 -0800)]
Add stopwords for POD documentation of contrib/* scripts

Change-Id: I850cb07c344757362f09a3c2d88adc5b8154d7d7
Reviewed-on: https://gerrit.stanford.edu/838
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoFix NAME sections of new Wallet::Schema::Result::* classes
Russ Allbery [Sat, 23 Feb 2013 04:29:28 +0000 (20:29 -0800)]
Fix NAME sections of new Wallet::Schema::Result::* classes

Change-Id: I8aa2d9232a3f15d424eafbda69b6e065824e62b8

11 years agoDon't separately warn on upgrade in Wallet::Admin
Russ Allbery [Thu, 14 Feb 2013 02:27:37 +0000 (18:27 -0800)]
Don't separately warn on upgrade in Wallet::Admin

The wallet-admin wrapper script will already pass any errors to
die, so don't separately warn.

Change-Id: Id5b27c5f9eaba8cf2d45ef058aaaa93e50f9cab5
Reviewed-on: https://gerrit.stanford.edu/795
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoInstall the wallet schema during make install
Russ Allbery [Thu, 14 Feb 2013 02:25:53 +0000 (18:25 -0800)]
Install the wallet schema during make install

Install the wallet schema files generated by DBIx::Class for the
various supported database engines into /usr/local/share/wallet
(by default, using pkgdatadir) on make install.  Set the default
$DB_DDL_DIRECTORY value in Wallet::Config accordingly.

Change-Id: I7ec52b171bc6aca2c3e1040c037e7cf24553231f
Reviewed-on: https://gerrit.stanford.edu/794
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoSet upgrade directory in Wallet::Admin
Russ Allbery [Thu, 14 Feb 2013 02:24:56 +0000 (18:24 -0800)]
Set upgrade directory in Wallet::Admin

In the upgrade() wrapper in Wallet::Admin, set the DDL directory
in the schema before attempting an upgrade.

Change-Id: I691184fc4cf416e68f300bc78f7caffc41bf94b8
Reviewed-on: https://gerrit.stanford.edu/793
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd spelling stopwords to new wallet Perl modules
Russ Allbery [Wed, 13 Feb 2013 20:41:27 +0000 (12:41 -0800)]
Add spelling stopwords to new wallet Perl modules

Change-Id: Id8810ff6deb991b70c2fd4587019aa245d247419
Reviewed-on: https://gerrit.stanford.edu/785
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd ssl-keypair to Stanford naming policy
Russ Allbery [Wed, 13 Feb 2013 20:13:41 +0000 (12:13 -0800)]
Add ssl-keypair to Stanford naming policy

Used currently by MDM to store both the certificate and the key in
the same file for convenience.

Change-Id: I38901ac93fe3022c2e00f735a0f995500841d709
Reviewed-on: https://gerrit.stanford.edu/784
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd default owner for group-based files in Stanford policy
Russ Allbery [Wed, 6 Feb 2013 04:18:35 +0000 (20:18 -0800)]
Add default owner for group-based files in Stanford policy

In Wallet::Policy::Stanford, add support for setting a default owner
of file objects whose names are based on a group that has an ACL
mapping.

Change-Id: I4f63815621d81e26ba4779d10f249cb31eef2b5e
Reviewed-on: https://gerrit.stanford.edu/759
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoSeparate legacy groups from new groups in Stanford policy
Russ Allbery [Wed, 6 Feb 2013 03:51:00 +0000 (19:51 -0800)]
Separate legacy groups from new groups in Stanford policy

Add all the new group names for the Stanford naming policy and
associate them with default ACLs (not yet used).  Distinguish
them from the legacy group names, and use the appropriate ones
for naming policy enforcement.

Change-Id: I4b87ff48d34d82195245798f41afefff26efa95d
Reviewed-on: https://gerrit.stanford.edu/758
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd default owner support to Stanford naming policy
Russ Allbery [Wed, 6 Feb 2013 03:01:55 +0000 (19:01 -0800)]
Add default owner support to Stanford naming policy

Add support for a default owner for host-based file objects to
Wallet::Policy::Stanford.

Change-Id: I1a9bf07def1356788fbd0acf9910a2e86c9e8f08
Reviewed-on: https://gerrit.stanford.edu/757
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoRefactor Stanford naming policy, add new file patterns
Russ Allbery [Wed, 6 Feb 2013 02:09:49 +0000 (18:09 -0800)]
Refactor Stanford naming policy, add new file patterns

Refactor the Wallet::Policy::Stanford module to pull some of the
constants out, and then add data and support in the naming policy
for the new file object naming scheme.

Change-Id: Iba0c24c119ce529a1d3fd8cd3332335c4433df09
Reviewed-on: https://gerrit.stanford.edu/756
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd current Stanford naming policy and test suite
Russ Allbery [Mon, 4 Feb 2013 07:24:40 +0000 (23:24 -0800)]
Add current Stanford naming policy and test suite

To make it easier to revise and test revisions to the Stanford
wallet naming policy, convert the code to a module and include it
in the distribution.  Add a test suite for the current policy.

Change-Id: I73b888fa8d18401a239144c2e9f810ad4692c44b
Reviewed-on: https://gerrit.stanford.edu/755
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoAdd another case to the Stanford ssl-key naming convention
Russ Allbery [Mon, 4 Feb 2013 05:40:12 +0000 (21:40 -0800)]
Add another case to the Stanford ssl-key naming convention

If there are multiple SSL private keys for the same host-based CN,
an application name can be added as an additional component of the
name.

Change-Id: I06e25359b291a77a7dbca1a7f3db84afb2b16ddd
Reviewed-on: https://gerrit.stanford.edu/754
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoRenamed dbh subroutines and variables for clarity
Jon Robertson [Fri, 1 Feb 2013 00:27:49 +0000 (16:27 -0800)]
Renamed dbh subroutines and variables for clarity

In moving from DBI to DBIx::Class, we at first left the various
variables the same.  This goes through to update them for the proper
names.

* Wallet::Admin::schema was created to return the schema object (and
similarly for Wallet::Server and Wallet::Report).
* Wallet::Admin::dbh was modified to return the actual DBI handle again
(and similarly for Wallet::Server and Wallet::Report).
* Various places that used $admin->{dbh} were moved to $admin->{schema}.
* Various places using $dbh for the schema object were changed to
$schema.

Change-Id: I00914866e9a8250855a7828474aa9ce0f37b914f
Reviewed-on: https://gerrit.stanford.edu/733
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoFixed errors with Keytab object and its tests
Jon Robertson [Thu, 31 Jan 2013 22:38:25 +0000 (14:38 -0800)]
Fixed errors with Keytab object and its tests

perl/Wallet/Object/Keytab.pm was using the wrong value for the database
handle in some places (trying to load as a subroutine rather than part
of the object).  Also, the keytab.t tests were attempting to run against
the DBIx::Class object rather than a direct dbh handle that they
expected.

Change-Id: Ifbb8b110d559f3ba867fc5b0dc3933fd2d4fd484
Reviewed-on: https://gerrit.stanford.edu/731
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoSuppress DBIx::Class::Schema::Versioned warnings
Jon Robertson [Thu, 31 Jan 2013 04:06:37 +0000 (20:06 -0800)]
Suppress DBIx::Class::Schema::Versioned warnings

DBIx::Class::Schema::Versioned uses carp to send a few warnings that are
more just informational messages.  Use a local warning handler to skip
the warnings we'll always get for normal upgrades.

Change-Id: I4f987b290ec17b95d737150dd106e7bb0f62a264
Reviewed-on: https://gerrit.stanford.edu/730
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoResynchronize TODO with JIRA
Russ Allbery [Thu, 31 Jan 2013 23:52:19 +0000 (15:52 -0800)]
Resynchronize TODO with JIRA

Change-Id: If4bd4a62517572fed6fe911bc39a0e5c6be36e76
Reviewed-on: https://gerrit.stanford.edu/732
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoRemove initialize and update code out of wallet-admin
Russ Allbery [Thu, 31 Jan 2013 02:52:07 +0000 (18:52 -0800)]
Remove initialize and update code out of wallet-admin

wallet-admin is solely a thin wrapper around Wallet::Admin, but it
gained specific code for initialize and update, which caused the
server/admin test to fail.

Move the update code to set a default version into into Wallet::Admin
instead.  The initialize code appears to be unnecessary; it was
setting a default for a parameter that was already handled by
Wallet::Config.

Change-Id: I1a7e5dbbfd005e4f60e89e50a91019295e44df99
Reviewed-on: https://gerrit.stanford.edu/729
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoConfigure $DB_DDL_DIRECTORY in client/full test
Russ Allbery [Thu, 31 Jan 2013 02:51:08 +0000 (18:51 -0800)]
Configure $DB_DDL_DIRECTORY in client/full test

We attempt to create a new SQLite database, which requires the schema
directory be configured.  Add that directory to the test wallet
configuration.

Change-Id: Id17fd10056760fe8efd5ef89cea134bca17e1abb
Reviewed-on: https://gerrit.stanford.edu/728
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
11 years agoMoved the Perl wallet modules and tests to DBIx::Class
Jon Robertson [Mon, 3 Dec 2012 06:07:16 +0000 (22:07 -0800)]
Moved the Perl wallet modules and tests to DBIx::Class

Moved all the Perl code to use DBIx::Class for the database interface.
This includes updating all database calls, how the schema is generated
and maintained, and the tests in places where some output has changed.
We also remove the schema.t test, as the tests for it are more covered
in the admin.t tests now.

Change-Id: Ie5083432d09a0d9fe364a61c31378b77aa7b3cb7
Reviewed-on: https://gerrit.stanford.edu/598
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>