]> eyrie.org Git - kerberos/kstart.git/log
kerberos/kstart.git
8 years agoImported Upstream version 4.2 upstream/4.2
Russ Allbery [Sat, 26 Dec 2015 01:01:49 +0000 (17:01 -0800)]
Imported Upstream version 4.2

8 years agoAdd tests/data/perl.conf to the distribution release/4.2
Russ Allbery [Sat, 26 Dec 2015 01:00:17 +0000 (17:00 -0800)]
Add tests/data/perl.conf to the distribution

8 years agoFix paths to POD docs in EXTRA_DIST
Russ Allbery [Sat, 26 Dec 2015 00:59:17 +0000 (16:59 -0800)]
Fix paths to POD docs in EXTRA_DIST

8 years agoRelease 4.2
Russ Allbery [Sat, 26 Dec 2015 00:58:28 +0000 (16:58 -0800)]
Release 4.2

8 years agoClean up license notices and regenerate LICENSE
Russ Allbery [Sat, 26 Dec 2015 00:45:40 +0000 (16:45 -0800)]
Clean up license notices and regenerate LICENSE

Use the Debian copyright-format 1.0 format for LICENSE.  Fix up the
files that had unparseable license notices or ones with typos, and
add license notices to a few files that didn't have them.

8 years agoMove POD documentation into a docs subdirectory
Russ Allbery [Sat, 26 Dec 2015 00:23:47 +0000 (16:23 -0800)]
Move POD documentation into a docs subdirectory

This is required for the standardized documentation check, and
reduces some clutter at the top level.

8 years agoRemove strlcpy, strlcat, and strndup
Russ Allbery [Sat, 26 Dec 2015 00:18:14 +0000 (16:18 -0800)]
Remove strlcpy, strlcat, and strndup

These are no longer used by the utility library, so we don't have
to provide replacements for them.  Also clean up a remaining build
rule for the concat test suite.

8 years agoUpdate to rra-c-util 5.9 and C TAP Harness 3.4
Russ Allbery [Sat, 26 Dec 2015 00:11:42 +0000 (16:11 -0800)]
Update to rra-c-util 5.9 and C TAP Harness 3.4

Update to rra-c-util 5.9:

* Add missing va_end to xasprintf implementation.
* Improve portability to Kerberos included in Solaris 10.
* Use appropriate warning flags with Clang (currently not warning clean).
* Use Lancaster Consensus environment variables to control tests.
* Use calloc or reallocarray for protection against integer overflows.
* Suppress warnings from Kerberos headers in non-system paths.
* Assume calloc initializes pointers to NULL.
* Assume free(NULL) is properly ignored.
* Improve error handling in xasprintf and xvasprintf.
* Check the return status of snprintf and vsnprintf properly.
* Preserve errno if snprintf fails in vasprintf replacement.
* Fix probing for Heimdal's libroken to work with older versions.
* Improve POD tests.
* Fix kafs compilation failure on Solaris 11 or later.
* Drop concat from the util library in favor of asprintf.
* Fail on any error in [bx]asprintf and [bx]vasprintf.
* Pass --deps to krb5-config in the non-reduced-dependencies case.
* Silence __attribute__ warnings on more compilers.

Update to C TAP Harness 3.4:

* Fix segfault in runtests with an empty test list.
* Display verbose test results with -v or C_TAP_VERBOSE.
* Support comments and blank lines in test lists.
* Check for integer overflow on memory allocations.
* Reopen standard input to /dev/null when running a test list.
* Don't leak extraneous file descriptors to tests.
* Suppress lazy plans and test summaries if the test failed with bail.
* runtests now treats the command line as a list of tests by default.
* The full test executable path can now be passed to runtests -o.
* Improved harness output for tests with lazy plans.
* Improved harness output to a terminal for some abort cases.
* Flush harness output after each test even when not on a terminal.
* 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.
* Silence __attribute__ warnings on more compilers.
* runtests now frees all allocated resources on exit.

8 years agoRetry initial authentication until it succeeds
Russ Allbery [Fri, 25 Dec 2015 22:46:00 +0000 (14:46 -0800)]
Retry initial authentication until it succeeds

For both k5start with a command or -K and no -x flag, and krenew with
the -i flag, repeatedly retry the initial authentication.  The first
retry will be immediate, and then the commands will keep trying with
exponential backoff to one minute intervals, and then continuously at
one minute intervals until the command is killed or authentication
succeeds.  k5start and krenew will no longer start any other command
until the initial authentication succeeds, fixing startup behavior
when running a command that must have valid Kerberos tickets
immediately on start.  Based on a patch by Lars Hanke.

8 years agoFix a Stanford-specific bit in the test suite
Russ Allbery [Fri, 25 Dec 2015 20:50:29 +0000 (12:50 -0800)]
Fix a Stanford-specific bit in the test suite

When stripping the realm, strip any realm, not just stanford.edu.

8 years agoAlso fix -a and -b checks for krenew, add NEWS entry
Russ Allbery [Fri, 25 Dec 2015 19:00:12 +0000 (11:00 -0800)]
Also fix -a and -b checks for krenew, add NEWS entry

8 years agoFixed option plausibility checks
Dr. Lars Hanke [Wed, 17 Jun 2015 22:41:29 +0000 (00:41 +0200)]
Fixed option plausibility checks

8 years agoImprove documentation and add NEWS for -a option
Russ Allbery [Fri, 25 Dec 2015 18:54:31 +0000 (10:54 -0800)]
Improve documentation and add NEWS for -a option

9 years agoFix k5start documentation of -K default
Russ Allbery [Wed, 3 Dec 2014 03:16:54 +0000 (19:16 -0800)]
Fix k5start documentation of -K default

The default for -K is one hour, not something appropriate to the
ticket lifetime.  Add adjusting the wakeup period to the ticket
lifetime to TODO.

9 years agoAdd some additional work to TODO
Russ Allbery [Sun, 3 Aug 2014 19:55:30 +0000 (12:55 -0700)]
Add some additional work to TODO

9 years agoUpdate the short description of the package
Russ Allbery [Sun, 13 Jul 2014 01:27:36 +0000 (18:27 -0700)]
Update the short description of the package

Don't advertise srvtabs, and add more information about the added
features over kinit.

9 years agoAdd -a option to always renew tickets and tokens
Russ Allbery [Thu, 3 Jul 2014 19:00:06 +0000 (12:00 -0700)]
Add -a option to always renew tickets and tokens

Add the -a option to k5start and krenew, which says to always try
to renew our tickets (and tokens, if -t) every time we wake up,
regardless of how much time is left on the tickets.  This is useful if
you want to ensure that a certain amount of lifetime always exists
on the tickets, or if you want to ensure aklog gets run, even if
something else is keeping our tickets fresh.

Based on a patch by Andrew Deason.

9 years agoFix another place where a temporary cache wasn't removed
Russ Allbery [Thu, 3 Jul 2014 17:59:06 +0000 (10:59 -0700)]
Fix another place where a temporary cache wasn't removed

If fchmod of the temporary ticket cache failed, the file wasn't
deleted.  Add in code to do that.

10 years agoChange my email address to eagle@eyrie.org
Russ Allbery [Sun, 13 Apr 2014 23:25:27 +0000 (16:25 -0700)]
Change my email address to eagle@eyrie.org

10 years agoEnable large file support
Russ Allbery [Wed, 8 Jan 2014 04:42:08 +0000 (20:42 -0800)]
Enable large file support

This probably won't matter, but may as well.

10 years agoMake daemon test suite more robust
Russ Allbery [Wed, 8 Jan 2014 00:23:44 +0000 (16:23 -0800)]
Make daemon test suite more robust

Extend delays, since authentication can take a while on a remote,
loaded network.  Use better strategies for waiting for activity
than simple numeric delays.  Fix the test count in k5start/daemon.

10 years agoSkip keyring tests if the resulting tickets disappear
Russ Allbery [Wed, 8 Jan 2014 00:21:33 +0000 (16:21 -0800)]
Skip keyring tests if the resulting tickets disappear

MIT Kerberos doesn't cope well with UID session keyrings.  It can
get tickets, but then the tickets disappear.  Check for that and
skip the keyring tests if we're running into that problem.

10 years agoAdd AM_PROG_AR to configure.ac, needed by newer Automake
Russ Allbery [Wed, 8 Jan 2014 00:21:06 +0000 (16:21 -0800)]
Add AM_PROG_AR to configure.ac, needed by newer Automake

10 years agoApply new -H with -K meaning to krenew, clean up code
Russ Allbery [Wed, 8 Jan 2014 00:20:13 +0000 (16:20 -0800)]
Apply new -H with -K meaning to krenew, clean up code

-H can now be used with -K in krenew as well.  Simplify the
implementation, hopefully improve the documentation, and add a
NEWS entry.

10 years agoAllow usage of -K together with -H
Michael Lass [Mon, 19 Nov 2012 17:46:41 +0000 (18:46 +0100)]
Allow usage of -K together with -H

This allows users to override the default minimum remaining ticket
lifetime of two minutes after the next run when using -K.

When using -H without -K there should be no change in behaviour.

11 years agoAdd flag for reprompting to TODO
Russ Allbery [Mon, 17 Sep 2012 23:36:33 +0000 (16:36 -0700)]
Add flag for reprompting to TODO

12 years agoNEWS entry and test suite for k5start exit changes
Russ Allbery [Mon, 30 Apr 2012 20:11:18 +0000 (13:11 -0700)]
NEWS entry and test suite for k5start exit changes

12 years agoEnsure that k5start -K -x still exits on initial failure
Russ Allbery [Mon, 30 Apr 2012 20:10:49 +0000 (13:10 -0700)]
Ensure that k5start -K -x still exits on initial failure

12 years agok5start -K no longer exits if initial authentication fails
Rasmus Borup Hansen [Mon, 30 Apr 2012 20:09:06 +0000 (13:09 -0700)]
k5start -K no longer exits if initial authentication fails

k5start, when run with the -K option to run as a daemon, no longer
exits if the initial authentication fails.  Instead, it reports the
error to standard error and then continues to run, attempting
authentication every minute as if authentication had failed after it
had started.  Patch from Rasmus Borup Hansen.

12 years agoClean up after failure with k5start -o, -g, or -m
Russ Allbery [Mon, 30 Apr 2012 18:31:35 +0000 (11:31 -0700)]
Clean up after failure with k5start -o, -g, or -m

Clean up the temporary ticket cache on k5start failure if -o, -g, or
-m were given.  Based on a patch by Rasmus Borup Hansen.

12 years agoAdd NEWS entry for krenew -i interval fix
Russ Allbery [Mon, 30 Apr 2012 18:30:44 +0000 (11:30 -0700)]
Add NEWS entry for krenew -i interval fix

12 years agoShorten the wake-up period if there was an initial failure
Rasmus Borup Hansen [Mon, 30 Apr 2012 18:24:05 +0000 (11:24 -0700)]
Shorten the wake-up period if there was an initial failure

If -i is given to krenew and the initial ticket renewal failed, start
with the shorter wake-up interval of one minute just as if a
subsequent renewal failed.

12 years agoFix k5start documentation to not imply it switches users
Russ Allbery [Fri, 2 Mar 2012 03:46:30 +0000 (19:46 -0800)]
Fix k5start documentation to not imply it switches users

The first argument is the principal, not a username.  Don't call it
a username and imply that k5start can switch users.

12 years agoAdd spec changelog for changes from Robbert Eggermont
Russ Allbery [Tue, 10 Jan 2012 03:45:50 +0000 (19:45 -0800)]
Add spec changelog for changes from Robbert Eggermont

12 years agoAdd updated spec file
Robbert Eggermont [Tue, 10 Jan 2012 03:44:46 +0000 (19:44 -0800)]
Add updated spec file

- The .spec file refers to version 3.16.
- SLED doesn't have krb5-libs; both SLED and RHEL seem fine with
  Requires: krb5'.
- The %defattr lines cause some directory permissions problems.

12 years agoFix stray whitespace in NEWS
Russ Allbery [Sun, 8 Jan 2012 04:57:14 +0000 (20:57 -0800)]
Fix stray whitespace in NEWS

This was breaking formatting for the web pages.

12 years agoImported Upstream version 4.1 upstream/4.1
Russ Allbery [Sun, 8 Jan 2012 04:09:19 +0000 (20:09 -0800)]
Imported Upstream version 4.1

12 years agoRemove generated krb5.conf in non-renewable tests release/4.1
Russ Allbery [Sun, 8 Jan 2012 03:59:12 +0000 (19:59 -0800)]
Remove generated krb5.conf in non-renewable tests

If there is no keytab configuration, we were generating a krb5.conf
file and not deleting it.

12 years agoFix some documentation spelling errors
Russ Allbery [Sun, 8 Jan 2012 03:53:48 +0000 (19:53 -0800)]
Fix some documentation spelling errors

12 years agoRelease 4.1
Russ Allbery [Sun, 8 Jan 2012 03:51:36 +0000 (19:51 -0800)]
Release 4.1

12 years agoShorten the wakeup interval on errors
Russ Allbery [Sun, 8 Jan 2012 03:49:59 +0000 (19:49 -0800)]
Shorten the wakeup interval on errors

When k5start or krenew are running as a daemon and obtaining new
tickets fails, both now shorten the wakeup interval to one minute and
keep trying at that interval until the error resolves itself, and then
go back to the normal wakeup interval.

12 years agoAlways clean up PID files on exit
Russ Allbery [Sun, 8 Jan 2012 03:07:19 +0000 (19:07 -0800)]
Always clean up PID files on exit

After a SIGHUP or SIGTERM when not running a command, k5start and
krenew now clean up their PID files, if any, before exiting.

12 years agoUpdate copyright dates
Russ Allbery [Sun, 8 Jan 2012 02:40:21 +0000 (18:40 -0800)]
Update copyright dates

12 years agoAdd krenew -s option to SIGHUP the command on exit
Russ Allbery [Sun, 8 Jan 2012 02:37:26 +0000 (18:37 -0800)]
Add krenew -s option to SIGHUP the command on exit

Add a new -s option to krenew that, if given, tells krenew to send
SIGHUP to the command it's running when it exits because it can't
renew the ticket.  This is useful when continuing to run the command
without a valid ticket would be pointless.

12 years agoTest that krenew doesn't kill the command on exit
Russ Allbery [Sun, 8 Jan 2012 02:13:39 +0000 (18:13 -0800)]
Test that krenew doesn't kill the command on exit

12 years agoFix k5start -H with a cache for the wrong principal
Russ Allbery [Sun, 8 Jan 2012 01:05:24 +0000 (17:05 -0800)]
Fix k5start -H with a cache for the wrong principal

Fix a regression introduced in kstart 4.0 where k5start -H would be
happy with an unexpired ticket for a different principal than the
desired client principal.

12 years agoFix k5start -H and krenew -H with non-renewable tickets
Russ Allbery [Thu, 5 Jan 2012 21:29:41 +0000 (13:29 -0800)]
Fix k5start -H and krenew -H with non-renewable tickets

Fix a regression introduced in kstart 4.0 that caused k5start -H and
krenew -H to fail and attempt reauthentication with non-renewable
tickets even if the lifetime was long enough.  Thanks to pod for the
report.

12 years agoAdd krenew option to SIGHUP child on exit to TODO
Russ Allbery [Fri, 30 Dec 2011 05:23:50 +0000 (21:23 -0800)]
Add krenew option to SIGHUP child on exit to TODO

12 years agoImprove the README discussion of kafs requirements
Russ Allbery [Fri, 30 Dec 2011 05:12:28 +0000 (21:12 -0800)]
Improve the README discussion of kafs requirements

12 years agoImported Upstream version 4.0 upstream/4.0
Russ Allbery [Fri, 30 Dec 2011 04:12:22 +0000 (20:12 -0800)]
Imported Upstream version 4.0

12 years agoWhen re-execing perms-t via fakeroot, use the SOURCE directory release/4.0
Russ Allbery [Fri, 30 Dec 2011 04:11:27 +0000 (20:11 -0800)]
When re-execing perms-t via fakeroot, use the SOURCE directory

12 years agoRelease 4.0
Russ Allbery [Fri, 30 Dec 2011 04:08:19 +0000 (20:08 -0800)]
Release 4.0

12 years agoAdd new test files to the distribution
Russ Allbery [Fri, 30 Dec 2011 04:08:07 +0000 (20:08 -0800)]
Add new test files to the distribution

12 years agoRemove another stray "Kerberos v5" reference
Russ Allbery [Fri, 30 Dec 2011 03:08:06 +0000 (19:08 -0800)]
Remove another stray "Kerberos v5" reference

12 years agoUpdate LICENSE
Russ Allbery [Fri, 30 Dec 2011 02:58:49 +0000 (18:58 -0800)]
Update LICENSE

Remove the MIT copyright and license; there are no appreciable bits
of MIT kinit left in this code.  Everything has been rewritten.

Update lots of LICENSE information from the import of new code from
rra-c-util and various licensing changes there.

12 years agoAdd tests/README from C TAP Harness
Russ Allbery [Fri, 30 Dec 2011 02:58:00 +0000 (18:58 -0800)]
Add tests/README from C TAP Harness

12 years agoUpdate README for kafs requirements, MIT Kerberos for tests
Russ Allbery [Fri, 30 Dec 2011 02:46:21 +0000 (18:46 -0800)]
Update README for kafs requirements, MIT Kerberos for tests

12 years agoAdd replacement for missing krb5_cc_get_full_name
Russ Allbery [Fri, 30 Dec 2011 02:32:45 +0000 (18:32 -0800)]
Add replacement for missing krb5_cc_get_full_name

12 years agoFix krenew cache canonicalization
Russ Allbery [Fri, 30 Dec 2011 01:57:49 +0000 (17:57 -0800)]
Fix krenew cache canonicalization

Canonicalize to the full name similar to the change to k5start.  Add
a test for krenew handling of keyring caches.

12 years agoFix k5start/daemon tests for working cache canonicalization
Russ Allbery [Fri, 30 Dec 2011 01:51:59 +0000 (17:51 -0800)]
Fix k5start/daemon tests for working cache canonicalization

12 years agoFix cache canonicalization in k5start
Russ Allbery [Fri, 30 Dec 2011 01:44:44 +0000 (17:44 -0800)]
Fix cache canonicalization in k5start

Canonicalize to the full name of the cache, not just the identifier.
Add a test for using k5start with keyring caches.

12 years agoAlways canonicalize the ticket cache name in k5start
Russ Allbery [Thu, 29 Dec 2011 22:16:08 +0000 (14:16 -0800)]
Always canonicalize the ticket cache name in k5start

Always canonicalize the ticket cache name in k5start before
propagating KRB5CCNAME to child processes.  This combined with the
previous change allows -k to specify a ticket cache name that changes
once the cache is created, such as when creating new PIPE caches.

12 years agoFurther documentation fixes for the new -x flag
Russ Allbery [Thu, 29 Dec 2011 22:14:38 +0000 (14:14 -0800)]
Further documentation fixes for the new -x flag

12 years agoAdjust krenew/basic test for changes in error messages
Russ Allbery [Thu, 29 Dec 2011 22:13:45 +0000 (14:13 -0800)]
Adjust krenew/basic test for changes in error messages

12 years agoAdd some additional TODO items for test suite work
Russ Allbery [Thu, 29 Dec 2011 22:04:40 +0000 (14:04 -0800)]
Add some additional TODO items for test suite work

12 years agoAdd additional TODOs for faster retry on errors, PID cleanup
Russ Allbery [Thu, 29 Dec 2011 22:03:21 +0000 (14:03 -0800)]
Add additional TODOs for faster retry on errors, PID cleanup

12 years agoAdd new -x option to k5start and krenew to exit on error
Russ Allbery [Thu, 29 Dec 2011 22:00:51 +0000 (14:00 -0800)]
Add new -x option to k5start and krenew to exit on error

This restores the previous behavior, changed in this release to
keep running by default.

12 years agoTest that k5start keeps running after an error
Russ Allbery [Thu, 29 Dec 2011 21:46:50 +0000 (13:46 -0800)]
Test that k5start keeps running after an error

12 years agoModify k5start/daemon test to use tests/tmp for temporary files
Russ Allbery [Thu, 29 Dec 2011 21:42:05 +0000 (13:42 -0800)]
Modify k5start/daemon test to use tests/tmp for temporary files

12 years agoUpdate documentation for recent changes
Russ Allbery [Thu, 29 Dec 2011 21:36:57 +0000 (13:36 -0800)]
Update documentation for recent changes

Document that -k can now be any cache identifier.  Suggest -L with
-b in krenew as was done with k5start.  Update the krenew -i
documentation for the current implementation.  Add -i to the krenew
usage output.  Remove the notes in k5start that -o, -g, and -m will
result in windows where the ticket cache is not accessible.

12 years agoTest that krenew keeps running on renewal failure
Russ Allbery [Thu, 29 Dec 2011 20:22:44 +0000 (12:22 -0800)]
Test that krenew keeps running on renewal failure

Use a non-writable directory to confirm that krenew doesn't exit
on failures to renew the ticket cache as long as it can read the
cache.

12 years agoFix error reporting from ticket expiration checks
Russ Allbery [Thu, 29 Dec 2011 19:47:36 +0000 (11:47 -0800)]
Fix error reporting from ticket expiration checks

Don't report an error immediately when checking for ticket
expiration, since k5start doesn't want to report an error if the
ticket cache has gone away.  It will just recreate it.  Instead,
defer error reporting to the auth hook, where krenew can report
an error.

12 years agoCheck krenew error reporting when the ticket cache goes away
Russ Allbery [Thu, 29 Dec 2011 19:43:55 +0000 (11:43 -0800)]
Check krenew error reporting when the ticket cache goes away

12 years agoPropagate SIGINT to the child process rather than exiting
Russ Allbery [Thu, 29 Dec 2011 19:37:35 +0000 (11:37 -0800)]
Propagate SIGINT to the child process rather than exiting

k5start and krenew now propagate SIGINT (Ctrl-C) to the child process
when running a command rather than exiting immediately.

Add actual tests in k5start for signal propagation and also test
SIGQUIT propagation in both k5start and krenew.

12 years agoClean up ticket cache naming and permission handling
Russ Allbery [Thu, 29 Dec 2011 19:10:35 +0000 (11:10 -0800)]
Clean up ticket cache naming and permission handling

Ticket caches passed to k5start or krenew with the -k option are now
used as-is without prepending "FILE:".  This allows both programs to
be used with non-file caches (unles the -o, -g, or -m options were
given to k5start, of course).  However, users who were relying on
k5start or krenew prepending "FILE:" may now need to add this
explicitly to the -k argument if they want the ticket cache to be set
in the environment with that prefix.

k5start, when run with the -o, -g, or -m options to change ticket
cache ownership or permissions, now writes a temporary ticket cache in
the same directory, sets its ownership and permissions, and then
replaces the existing cache with an atomic rename.  It also sets
permissions properly if it has to reauthenticate after backgrounding
itself.  This closes two windows where the cache may not be accessible
to the program using it if k5start were in the middle of refreshing
it.  Thanks to Harry Coin for the report.

12 years agoRemove from TODO things that are now implemented
Russ Allbery [Thu, 29 Dec 2011 17:18:39 +0000 (09:18 -0800)]
Remove from TODO things that are now implemented

12 years agoAdd a test for k5start setting file permissions
Russ Allbery [Thu, 29 Dec 2011 08:21:36 +0000 (00:21 -0800)]
Add a test for k5start setting file permissions

12 years agoAdd proper verification of -H and -K options
Russ Allbery [Thu, 29 Dec 2011 08:02:49 +0000 (00:02 -0800)]
Add proper verification of -H and -K options

Copy the convert_number function from util/perms.c into framework.c
and use it in k5start and krenew to check the argument to -H and
-K.  Add a test for error handling that currently only tests the
command-line option validation.

12 years agoUse the correct form of Stanford's copyright statement
Russ Allbery [Thu, 29 Dec 2011 07:19:31 +0000 (23:19 -0800)]
Use the correct form of Stanford's copyright statement

12 years agoRemove unnecessary includes
Russ Allbery [Thu, 29 Dec 2011 07:14:48 +0000 (23:14 -0800)]
Remove unnecessary includes

12 years agoRemove the aklog path handling from krenew
Russ Allbery [Thu, 29 Dec 2011 07:11:18 +0000 (23:11 -0800)]
Remove the aklog path handling from krenew

This is now handled by the generic framework.

12 years agoSlightly longer timeout on the k5start/daemon test
Russ Allbery [Thu, 29 Dec 2011 07:10:04 +0000 (23:10 -0800)]
Slightly longer timeout on the k5start/daemon test

One time the k5start process didn't die in 0.1 seconds, so let's
wait for 0.2 seconds instead.

12 years agoAdd the rra-c-util kafs/haspag test since we include the code
Russ Allbery [Thu, 29 Dec 2011 07:08:07 +0000 (23:08 -0800)]
Add the rra-c-util kafs/haspag test since we include the code

12 years agoAdd new tests imported from rra-c-util to tests/TESTS
Russ Allbery [Thu, 29 Dec 2011 07:02:35 +0000 (23:02 -0800)]
Add new tests imported from rra-c-util to tests/TESTS

12 years agoImprove POD tests
Russ Allbery [Thu, 29 Dec 2011 07:00:39 +0000 (23:00 -0800)]
Improve POD tests

Enable warnings, enable strict for the basic POD test and use
skip_all for it where appropriate.

12 years agoConvert k5start to the new framework, fix error handling behavior
Russ Allbery [Thu, 29 Dec 2011 06:53:25 +0000 (22:53 -0800)]
Convert k5start to the new framework, fix error handling behavior

Convert k5start to use a shared framework with krenew, removing lots
of duplicate code.  Fix error handling behavior so that k5start as a
daemon continues running even if it fails to obtain credentials.

12 years agoDiagnose and reject the combination of -H and a command
Russ Allbery [Thu, 29 Dec 2011 06:51:13 +0000 (22:51 -0800)]
Diagnose and reject the combination of -H and a command

Just omit -H in this case.

12 years agoFix informational output in tests/krenew/basic-t
Russ Allbery [Thu, 29 Dec 2011 06:49:48 +0000 (22:49 -0800)]
Fix informational output in tests/krenew/basic-t

12 years agoExtend the timeout in the k5start/sigchld test
Russ Allbery [Thu, 29 Dec 2011 06:49:18 +0000 (22:49 -0800)]
Extend the timeout in the k5start/sigchld test

Four seconds wasn't necessarily enough time, so extend it to five
seconds to avoid intermittant test failures.

12 years agoTest proper removal of PID files on krenew exit
Russ Allbery [Wed, 28 Dec 2011 20:18:16 +0000 (12:18 -0800)]
Test proper removal of PID files on krenew exit

12 years agoUpdate copyright date and notice for tests/krenew/basic-t
Russ Allbery [Wed, 28 Dec 2011 20:15:32 +0000 (12:15 -0800)]
Update copyright date and notice for tests/krenew/basic-t

12 years agoEnsure proper krenew exit status, add more tests
Russ Allbery [Wed, 28 Dec 2011 19:56:22 +0000 (11:56 -0800)]
Ensure proper krenew exit status, add more tests

Make sure that various instances of failing the initial authentication
return the correct error status.

12 years agoRewrite krenew to use a new generic framework
Russ Allbery [Wed, 28 Dec 2011 19:42:27 +0000 (11:42 -0800)]
Rewrite krenew to use a new generic framework

The new framework will be used for both k5start and krenew and
refactors the common code between them, including the infrastructure
for running commands and running as a daemon.

Clean up handling of when to exit on errors.  krenew now defaults
to remaining running if there's an error in contacting the KDC or
storing the new credentials, only exiting by default if the renewable
lifetime has expired or if the ticket cache has disappeared.  -i can
still be used to keep it running in those cases as well.  However,
without -i, it will always exit if the initial authentication fails.

krenew now removes any PID files that it writes on exit, and is better
about removing a copied ticket cache on exit.

12 years agoAlso change all references to "K5" to just Kerberos
Russ Allbery [Tue, 27 Dec 2011 18:39:15 +0000 (10:39 -0800)]
Also change all references to "K5" to just Kerberos

12 years agoRemove Kerberos v4 support in libtest.pl
Russ Allbery [Tue, 27 Dec 2011 18:38:56 +0000 (10:38 -0800)]
Remove Kerberos v4 support in libtest.pl

No need to worry about klist for Kerberos v4 tickets any longer.

12 years agoChange references to Kerberos v5 to just Kerberos
Russ Allbery [Tue, 27 Dec 2011 18:33:54 +0000 (10:33 -0800)]
Change references to Kerberos v5 to just Kerberos

Change references to Kerberos v5 to just Kerberos in the
documentation.  Kerberos v5 has been the default version of Kerberos
for over ten years now.

12 years agoRemove k4start
Russ Allbery [Tue, 27 Dec 2011 18:15:54 +0000 (10:15 -0800)]
Remove k4start

Remove k4start from the distribution.  I no longer have a Kerberos v4
environment with which to test and therefore no way to refactor and
restructure the code for other changes to the package.  Users who
still need k4start should use an older version of the package.

12 years agoUpdate to rra-c-util 4.0
Russ Allbery [Tue, 27 Dec 2011 17:57:48 +0000 (09:57 -0800)]
Update to rra-c-util 4.0

Update the included kafs library to the version from rra-c-util 4.0,
adding support for Mac OS X and Solaris 11.

* Build on systems where krb5/krb5.h exists but krb5.h does not.
* Build with OpenBSD Heimdal where there is no separate roken library.
* Kerberos probes no longer assume transitive library dependencies.
* Fix removal of /usr/include from Kerberos CPPFLAGS.
* Add notices to all files copied from rra-c-util.
* Fix replacement of krb5_free_error_message.
* Support older Heimdal with no-context krb5_get_init_creds_opt_free.
* Improve probe for krb5_kt_free_entry.
* Fix use of long long, where available, in replacement mkstemp.
* Include strings.h where present for more POSIX string functions.
* Use typedef for a missing sig_atomic_t.
* Avoid passing a NULL context to krb5_get_error_message.
* Fix integer data types in the messages utility library.
* Use configure-detected aklog path in the test suite.
* Add replacement for a missing strndup (such as on Mac OS X).
* Add tests for messages-krb5 utility functions.
* Update compiler warning flags for make warnings to gcc 4.6.1.

Also fix a compiler warning in k5start.

12 years agoAdd designator to stop words for POD spelling check
Russ Allbery [Tue, 27 Dec 2011 17:56:52 +0000 (09:56 -0800)]
Add designator to stop words for POD spelling check

Also switch to my current standard for stopwords and move them to the
very start of the document.

12 years agoUpdate to C TAP Harness 1.9
Russ Allbery [Tue, 27 Dec 2011 17:18:09 +0000 (09:18 -0800)]
Update to C TAP Harness 1.9

* Add a usage message and -h option to runtests.
* Honor -s and SOURCE in runtests even if BUILD is not set.
* Improve test summary at the end of a C test case.
* Flush stderr before printing TAP output.
* Improve portability of output functions in the shell libtap.sh.
* Add notices to all files copied from  C TAP Harness.