]> eyrie.org Git - kerberos/kstart.git/log
kerberos/kstart.git
19 months agoBump perl-actions/install-with-cpanm from 1.3 to 1.4 main
dependabot[bot] [Mon, 17 Oct 2022 17:10:39 +0000 (17:10 +0000)]
Bump perl-actions/install-with-cpanm from 1.3 to 1.4

Bumps [perl-actions/install-with-cpanm](https://github.com/perl-actions/install-with-cpanm) from 1.3 to 1.4.
- [Release notes](https://github.com/perl-actions/install-with-cpanm/releases)
- [Commits](https://github.com/perl-actions/install-with-cpanm/compare/v1.3...v1.4)

---
updated-dependencies:
- dependency-name: perl-actions/install-with-cpanm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
23 months agoFix k5start ls -l examples
Russ Allbery [Wed, 29 Jun 2022 17:48:41 +0000 (10:48 -0700)]
Fix k5start ls -l examples

Fix examples in k5start man page that run ls -l on the temporary
ticket cache to remove any FILE: prefix first.  Thanks, Michael
Osipov.

Fixes #8.

2 years agoBump actions/cache from 2 to 3
dependabot[bot] [Mon, 21 Mar 2022 17:07:30 +0000 (17:07 +0000)]
Bump actions/cache from 2 to 3

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoBump actions/checkout from 2 to 3
dependabot[bot] [Mon, 7 Mar 2022 17:06:49 +0000 (17:06 +0000)]
Bump actions/checkout from 2 to 3

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoFix Open HUB link in DocKnot configuration
Russ Allbery [Sat, 16 Oct 2021 19:32:49 +0000 (12:32 -0700)]
Fix Open HUB link in DocKnot configuration

This requires a full URL, not just the package name.

2 years agoUpdate RPM spec file
Russ Allbery [Tue, 31 Aug 2021 04:45:37 +0000 (21:45 -0700)]
Update RPM spec file

This sadly missed the 4.3 release.

2 years agoRelease 4.3 release/4.3
Russ Allbery [Tue, 31 Aug 2021 03:34:01 +0000 (20:34 -0700)]
Release 4.3

2 years agoInstall libkeyutils-dev for GitHub Actions
Russ Allbery [Tue, 31 Aug 2021 03:20:55 +0000 (20:20 -0700)]
Install libkeyutils-dev for GitHub Actions

This will allow the CI runs to test building with keyring support.

2 years agoUse explicit_bzero to clear password with -s
Russ Allbery [Tue, 31 Aug 2021 03:20:03 +0000 (20:20 -0700)]
Use explicit_bzero to clear password with -s

Use explicit_bzero, where available, to overwrite the memory used for
the user's password when k5start is run with the -s option.

2 years agoAvoid warnings with Autoconf 2.71
Russ Allbery [Mon, 30 Aug 2021 05:15:18 +0000 (22:15 -0700)]
Avoid warnings with Autoconf 2.71

Autoconf 2.71 enables warnings for obsolete constructs by default,
and there were a few in the configure machinery for the package.
Replace AC_HELP_STRING with AS_HELP_STRING and AC_CONFIG_HEADER
with AC_CONFIG_HEADERS.

2 years agoIgnore configure~
Russ Allbery [Mon, 30 Aug 2021 05:08:19 +0000 (22:08 -0700)]
Ignore configure~

The new version of Autoconf creates this backup file for the
configure script.

2 years agoAdd support for kafs
Russ Allbery [Mon, 30 Aug 2021 05:05:44 +0000 (22:05 -0700)]
Add support for kafs

Add support for kafs to the -t options of k5start and krenew.  If AFS
setpag support is not compiled in or AFS is not available, but the
Linux kafs kernel module is available, do not error out when -t is
specified and continue to run the external program.  If libkeyutils is
found at compile time and a command was specified on the command line,
create a new session keyring before running the external command to
isolate its AFS credentials from the calling process.  Thanks to Bill
MacAllister, David Howells, and Jeffrey Altman for proposed code and
implementation discussion.

2 years agoImprove exit status documentation
Russ Allbery [Sun, 29 Aug 2021 20:56:56 +0000 (13:56 -0700)]
Improve exit status documentation

Change the man page section title and document the behavior when
the command is killed with a signal.

2 years agoNEWS and some fixes for exit handling
Russ Allbery [Sun, 29 Aug 2021 20:41:02 +0000 (13:41 -0700)]
NEWS and some fixes for exit handling

Add a NEWS entry for the change in exit status handling, fix the
k5start/sigchld test, and add a krenew test.  Fix a style issue
with a C++-style comment.

2 years agoMerge pull request #2 from versi786/set-exit-status-if-child-stops-via-signal
Russ Allbery [Sun, 29 Aug 2021 20:11:17 +0000 (13:11 -0700)]
Merge pull request #2 from versi786/set-exit-status-if-child-stops-via-signal

Set exit status if child stops via signal

2 years agoFix k5start/sigchld test for exit status
Russ Allbery [Sun, 29 Aug 2021 20:09:57 +0000 (13:09 -0700)]
Fix k5start/sigchld test for exit status

In preparation for adding a more accurate exit status to k5start,
fix the k5start/sigchld test to only expect the bottom byte of the
exit status to be 0.

2 years agoSet exit status if child stops via signal
Aasif Versi [Sat, 28 Aug 2021 15:04:43 +0000 (11:04 -0400)]
Set exit status if child stops via signal

The current implementation of command_finish always calls WEXITSTATUS,
despite the man page for waitpid stating that WEXITSTATUS should only
be used if WIFEXITED returned true.

This change will set the exit status of k5start accordingly by either
using WTERMSIG if WIFSIGNALED returns true, and using WEXITSTATUS if
WIFEXITETED returns true. This means that the user can check the exit
status of the command running under k5start and know if the command
failed. Looking at the following example, in the previous code, the
command would print 0, now it will print 143. This will match the
functionality of bash [0].

$ k5start -f ./user.keytab -- sh -c 'kill $$'; echo $?
143
$ sh -c 'kill $$'; echo $?
143

This also makes a minor change by only setting the status if it is a
non-null pointer.

[0]: https://www.gnu.org/software/bash/manual/html_node/Exit-Status.html

3 years agoReformat the source with clang-format
Russ Allbery [Tue, 30 Mar 2021 18:37:21 +0000 (11:37 -0700)]
Reformat the source with clang-format

Automated source code formatting is superior to hand-crafting the
formatting.

3 years agoUse internal insead of private for config
Russ Allbery [Tue, 30 Mar 2021 18:35:38 +0000 (11:35 -0700)]
Use internal insead of private for config

The command framework used by k5start and krenew has a shared
configuration plus internal configuration structs for each program
that hold their own options.  The latter were previously called
private, but this is a C++ reserved word that causes problems with
various tools (such as clang-format) that understand both C and
C++.  Rename those structs to internal.

3 years agoAdd SPDX-License-Identifier to all files
Russ Allbery [Tue, 30 Mar 2021 18:22:53 +0000 (11:22 -0700)]
Add SPDX-License-Identifier to all files

Add explicit identifiers and a test to ensure that all files have
a valid SPDX license identifier.

3 years agoAdd obsolete-strings test and fix old URLs
Russ Allbery [Tue, 30 Mar 2021 17:54:43 +0000 (10:54 -0700)]
Add obsolete-strings test and fix old URLs

3 years agoAdd CI status badge to README.md
Russ Allbery [Tue, 30 Mar 2021 17:35:50 +0000 (10:35 -0700)]
Add CI status badge to README.md

3 years agoFix k5start/perms test on Heimdal
Russ Allbery [Tue, 30 Mar 2021 06:57:07 +0000 (23:57 -0700)]
Fix k5start/perms test on Heimdal

The Heimdal klist, even when it thinks it's running as root,
refuses to open a ticket cache owned by another user or with a
publicly-readable mode.  Work around this by checking the mode
and ownership first, then resetting them to what was expected
and checking the contents of the cache.

3 years agoFix ticket cache analysis in test suite with Heimdal
Russ Allbery [Tue, 30 Mar 2021 06:48:07 +0000 (23:48 -0700)]
Fix ticket cache analysis in test suite with Heimdal

Heimdal's version of klist shows dates in a different format that
the regex parsing of klist output didn't understand.  Adjust for
the current formatting while hopefully not breaking understanding
of previous versions.

3 years agoFix races in k5start/daemon and krenew/daemon tests
Russ Allbery [Tue, 30 Mar 2021 03:13:14 +0000 (20:13 -0700)]
Fix races in k5start/daemon and krenew/daemon tests

Several of the tests for backgrounding were missing a delay to
wait for the daemon to start.  Add those in, and clean up the
PID files from previous tests to avoid spurious failures.

k5start and krenew do not write their PID file atomically, so
there was a race condition in the tests where they would detect
the existence of the file and then try to read an empty file.
Avoid this by checking that the file contains a PID using -s.

3 years agoAdd GitHub Actions CI configuration
Russ Allbery [Mon, 29 Mar 2021 16:54:00 +0000 (09:54 -0700)]
Add GitHub Actions CI configuration

Add a GitHub Actions workflow to test with MIT and Heimdal based
on the CI configuration for remctl.  Install a dependabot
configuration to update the versions of GitHub Actions.

3 years agoAdd check-cppcheck rule and fix issues
Russ Allbery [Tue, 30 Mar 2021 02:46:08 +0000 (19:46 -0700)]
Add check-cppcheck rule and fix issues

Copy the standard check-cppcheck rule from rra-c-util and fix the
issues that the current version of cppcheck (2.3) uncovered.

3 years agoMove source files to a commands subdirectory
Russ Allbery [Tue, 30 Mar 2021 02:44:49 +0000 (19:44 -0700)]
Move source files to a commands subdirectory

cppcheck works better when there are no source files at the top
level and I do this with my other packages, so do that here as
well.

Fix the test suite to use C_TAP_BUILD and C_TAP_SOURCE instead of
BUILD and SOURCE to find files.

Remove some obsolete files from .gitignore.

3 years agoUpdate to rra-c-util 9.1 and C TAP Harness 4.7
Russ Allbery [Mon, 29 Mar 2021 23:07:33 +0000 (16:07 -0700)]
Update to rra-c-util 9.1 and C TAP Harness 4.7

Update to rra-c-util 9.1:

* Fix getgroups error handling in k_haspag replacement.
* Check for a working Kerberos header file during configure.
* Use AS_ECHO in all Autoconf macros for better portability.
* Fix reallocarray portability on NetBSD.
* Stop providing a replacement for a broken snprintf.
* Don't check for krb5-config when using explicit paths.
* Fix new warnings with current versions of GCC and Clang.
* Probe for the warning flags supported by the compiler.

Update to C TAP Harness 4.7:

* Report test failures as left and right instead of wanted and seen.
* Fix string comparisons against NULL pointers.
* Honor C_TAP_SOURCE and C_TAP_BUILD along with SOURCE and BUILD.

3 years agoSkip keyring tests without keyring support
Russ Allbery [Mon, 29 Mar 2021 22:57:26 +0000 (15:57 -0700)]
Skip keyring tests without keyring support

The current released version of Heimdal doesn't support keyring
ticket caches.  Detect that and skip the relevant tests when built
without that support.

3 years agoAdjust tests for new tokens output format
Russ Allbery [Mon, 29 Mar 2021 22:56:41 +0000 (15:56 -0700)]
Adjust tests for new tokens output format

The output of tokens now may include the type of AFS token.  Adjust
regexes that match its output accordingly.

3 years agoRebuild documentation with DocKnot
Russ Allbery [Sun, 28 Mar 2021 20:17:23 +0000 (13:17 -0700)]
Rebuild documentation with DocKnot

Add DocKnot configuration and use it to rebuild the README file and
add a README.md file.

5 years agoAdd only running aklog to TODO
Russ Allbery [Sat, 3 Nov 2018 19:57:22 +0000 (12:57 -0700)]
Add only running aklog to TODO

7 years agoAdd anonymous authentication support to TODO
Russ Allbery [Mon, 2 Jan 2017 03:30:15 +0000 (19:30 -0800)]
Add anonymous authentication support to TODO

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 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 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