]> eyrie.org Git - kerberos/kstart.git/log
kerberos/kstart.git
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

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.

13 years agoSet signal handlers with sigaction instead of signal
Russ Allbery [Wed, 22 Sep 2010 23:31:32 +0000 (16:31 -0700)]
Set signal handlers with sigaction instead of signal

Set signal handlers with sigaction instead of signal, which may fix
problems propagating multiple signals to child processes in k5start
and krenew.

13 years agoAdd some more complexity to the SIGCHLD test
Russ Allbery [Wed, 22 Sep 2010 23:21:38 +0000 (16:21 -0700)]
Add some more complexity to the SIGCHLD test

Send an explicit SIGCHLD to the k5start job, and then run through
a SIGSTOP/SIGCONT cycle with some delays to ensure that the SIGCHLD
interruption was already seen.  Enable the test by default.

13 years agoAdd a test for SIGCHLD handling
Russ Allbery [Wed, 22 Sep 2010 22:30:51 +0000 (15:30 -0700)]
Add a test for SIGCHLD handling

This currently doesn't fail, so I'm not sure it's testing anything
effectively, but it still tests wakeup handling so let's keep it.

13 years agoAdd two new feature requests for k5start to TODO
Russ Allbery [Mon, 6 Sep 2010 21:26:42 +0000 (14:26 -0700)]
Add two new feature requests for k5start to TODO

14 years agoUpdate spec file for 3.16 and fix some problems
Andy Cobaugh [Mon, 29 Mar 2010 22:35:30 +0000 (15:35 -0700)]
Update spec file for 3.16 and fix some problems

Update the RPM spec file to the 3.16 release.  Use %{dist} in Release as
the old method of reading redhat-release doesn't work on distros like
centos and fedora.  It also now correctly requires krb5-libs instead of
krb5-workstation.

14 years agoFix some variable errors in the krb5_get_renewed_creds replacement
Russ Allbery [Thu, 4 Feb 2010 03:42:24 +0000 (19:42 -0800)]
Fix some variable errors in the krb5_get_renewed_creds replacement

14 years agoFix one incorrect krb5_free_unparsed_name call
Russ Allbery [Thu, 4 Feb 2010 01:10:13 +0000 (17:10 -0800)]
Fix one incorrect krb5_free_unparsed_name call

14 years agoReverse the direction of the krb5_free_unparsed_name probe
Russ Allbery [Thu, 4 Feb 2010 00:55:41 +0000 (16:55 -0800)]
Reverse the direction of the krb5_free_unparsed_name probe

If krb5_xfree exists, use it, even if krb5_free_unparsed_name also exists.
This avoids a deprecation warning from Heimdal, which provides the latter
function but doesn't prefer it.

14 years agoDiagnose -U/-u/-i conflicts and use krb5_free_unparsed_name
Russ Allbery [Thu, 4 Feb 2010 00:13:51 +0000 (16:13 -0800)]
Diagnose -U/-u/-i conflicts and use krb5_free_unparsed_name

Diagnose the nonsensical combination of -U and -u or -i options in
k5start and report an error rather than ignoring -u and appending the
instance from -i onto the principal obtained via -U.

Provide krb5_free_unparsed_name in terms of krb5_xfree for Heimdal.

Call krb5_free_unparsed_name to free the results of krb5_unparse_name
instead of just calling free.  This probably will never matter on UNIX,
but it's correct coding style.

14 years agoRefactor Kerberos portability into a new portability layer
Russ Allbery [Thu, 4 Feb 2010 00:03:46 +0000 (16:03 -0800)]
Refactor Kerberos portability into a new portability layer

Move the #ifdefs out of the main code and instead provide a Kerberos
portability layer that exposes roughly the Heimdal API.  Then call that
layer uniformly throughout the rest of the code.

14 years agoSkip the xmalloc tests unless RRA_MAINTAINER_TESTS is set
Russ Allbery [Wed, 20 Jan 2010 01:34:31 +0000 (17:34 -0800)]
Skip the xmalloc tests unless RRA_MAINTAINER_TESTS is set

All of the failures in automated testing have been problems with the
assumptions around memory allocation or problems with the test suite, not
problems with the underlying xmalloc code.

14 years agoInclude .gitignore and krenew-agent in the distribution release/3.16
Russ Allbery [Tue, 19 Jan 2010 18:32:04 +0000 (10:32 -0800)]
Include .gitignore and krenew-agent in the distribution

14 years agoInclude util/macros.h in the libutil sources
Russ Allbery [Tue, 19 Jan 2010 18:30:40 +0000 (10:30 -0800)]
Include util/macros.h in the libutil sources

14 years agoFix Makefile.am typo listing util/perms.h
Russ Allbery [Tue, 19 Jan 2010 18:29:41 +0000 (10:29 -0800)]
Fix Makefile.am typo listing util/perms.h

14 years agoUpdate 3.16 release date
Russ Allbery [Tue, 19 Jan 2010 18:28:15 +0000 (10:28 -0800)]
Update 3.16 release date

14 years agoRelease 3.16
Russ Allbery [Tue, 19 Jan 2010 04:47:20 +0000 (20:47 -0800)]
Release 3.16

14 years agoAdjust the k4start includes for the util reorganization
Russ Allbery [Tue, 19 Jan 2010 04:46:59 +0000 (20:46 -0800)]
Adjust the k4start includes for the util reorganization

14 years agoUpdate to rra-c-util 2.2
Russ Allbery [Tue, 19 Jan 2010 04:33:43 +0000 (20:33 -0800)]
Update to rra-c-util 2.2

* Add GCC function attributes alloc_size, malloc, and nonnull.
* Use AC_TYPE_LONG_LONG_INT instead of AC_CHECK_TYPES([long long]).

Also split up util/util.h into separate header files for each set of
functions and add similar header files for the functions that are
unique to this package.

Add some missing krb5.h includes that were masked by includes in other
header files.

14 years agoRemove obsolete configure comment about disabling k4start
Russ Allbery [Tue, 19 Jan 2010 03:00:23 +0000 (19:00 -0800)]
Remove obsolete configure comment about disabling k4start

14 years agoUse a better test for how to get the realm
Russ Allbery [Tue, 19 Jan 2010 02:51:18 +0000 (18:51 -0800)]
Use a better test for how to get the realm

Now that I know about krb5_principal_get_realm, don't probe for the
krb5_realm type, just for that function.  We assume that Heimdal has
that function; it looks like it's been there since around 0.4.

14 years agoFix the non-alloc branch of opt_init handling
Russ Allbery [Tue, 19 Jan 2010 02:44:02 +0000 (18:44 -0800)]
Fix the non-alloc branch of opt_init handling

If krb5_get_init_creds_opt_alloc wasn't available, the argument to
krb5_get_init_creds_opt_init was incorrect.  Fix.

14 years agoFix the test suite to pass with Heimdal user space
Russ Allbery [Tue, 19 Jan 2010 02:42:05 +0000 (18:42 -0800)]
Fix the test suite to pass with Heimdal user space

Heimdal's klist has a different output format.  Update the horrible
regexes that parse the klist output to allow for either output format.
We should probably be building our own klist equivalent for testing.

14 years agoAvoid Heimdal functions marked as deprecated
Russ Allbery [Tue, 19 Jan 2010 02:19:50 +0000 (18:19 -0800)]
Avoid Heimdal functions marked as deprecated

Use krb5_principal_get_realm instead of krb5_princ_realm, which
also simplifies the logic.  Add appropriate const markings.

Use krb5_get_init_creds_opt_alloc if available instead of using a
static structure and calling _opt_init.  Always allocate new memory
for the krb5_get_init_creds_opt structure, even if _opt_alloc isn't
available, and store a pointer in the options struct instead of the
struct itself.

14 years agoImprove the diagnostic message output from k5start
Russ Allbery [Tue, 19 Jan 2010 01:50:38 +0000 (17:50 -0800)]
Improve the diagnostic message output from k5start

14 years agoAdd -L option saying to log messages to syslog
Russ Allbery [Tue, 19 Jan 2010 01:27:27 +0000 (17:27 -0800)]
Add -L option saying to log messages to syslog

Add the -L option to k5start and krenew, saying to log messages to
syslog as well as standard output or standard error.

Change two verbose printfs in k5start to use notice instead.

14 years agoMention PAG support in -h output if compiled in
Russ Allbery [Tue, 19 Jan 2010 00:16:28 +0000 (16:16 -0800)]
Mention PAG support in -h output if compiled in

k5start and krenew now say, in -h output, if they will attempt to
create a new AFS PAG for commands run in combination with -t (enabled
by --enable-setpag), allowing one to determine whether that support
was compiled in.

14 years agoDefine HAVE_KAFS if built with any sort of AFS support
Russ Allbery [Tue, 19 Jan 2010 00:12:03 +0000 (16:12 -0800)]
Define HAVE_KAFS if built with any sort of AFS support

AFS support may result in a wide variety of different #defines depending
on what's available, and kafs/kafs.h already untangles them.  Export from
it a simple HAVE_KAFS define that's set only if some sort of AFS support
is available.  This allows programs using it to, for instance, display
different help output based on whether AFS support is compiled in.

14 years agoReword awkward sentence in the k5start man page
Russ Allbery [Mon, 18 Jan 2010 23:38:05 +0000 (15:38 -0800)]
Reword awkward sentence in the k5start man page

Thanks, Jeff Blaine.

14 years agoAllow the argument to -k to start with FILE:
Russ Allbery [Tue, 5 Jan 2010 21:41:28 +0000 (13:41 -0800)]
Allow the argument to -k to start with FILE:

Allow the argument to -k to start with FILE: and strip off that prefix
to form the ticket cache name.  -k still forces its argument to be a
file-based cache, however; FILE: is the only cache type designator
supported.  Use the KRB5CCNAME environment variable for other ticket
cache types.

14 years agoFix segfault when -o is used without -k in k5start
Russ Allbery [Tue, 5 Jan 2010 21:39:48 +0000 (13:39 -0800)]
Fix segfault when -o is used without -k in k5start

Correctly set the ticket cache path in k5start when the -k option was
not given, fixing a NULL pointer dereference when the -o, -g, or -m
options were given without -k.

14 years agoRemove incorrect includes of sys/signal.h, add NEWS entry
Russ Allbery [Fri, 25 Sep 2009 22:20:22 +0000 (15:20 -0700)]
Remove incorrect includes of sys/signal.h, add NEWS entry

sys/signal.h is an internal header.  signal.h is the right header to
include.  Remove the sys/signal.h includes.  Add a NEWS entry for the
build fix.

Follow-on from 51532beb8d5998448072cae93f84a52852008cfe.

14 years agoInclude <signal.h>, needed on Solaris 9
Tim Bishop [Fri, 25 Sep 2009 22:17:31 +0000 (15:17 -0700)]
Include <signal.h>, needed on Solaris 9

14 years agoTODO updates for daemonized k5start and krenew
Russ Allbery [Sat, 15 Aug 2009 22:20:30 +0000 (15:20 -0700)]
TODO updates for daemonized k5start and krenew

Record that I want to:

* Add the -i flag to k5start
* Have krenew -i use a faster retry than the normal backoff
* Add optional logging of errors via syslog

14 years agoUpdate testing instructions for new C TAP Harness
Russ Allbery [Sat, 15 Aug 2009 22:16:00 +0000 (15:16 -0700)]
Update testing instructions for new C TAP Harness

Suggest running tests/runtests -o instead of running the test case
directly, taking advantage of the new C TAP Harness support.

14 years agoUpdate README on autotools requirements to standard wording
Russ Allbery [Sat, 15 Aug 2009 22:01:13 +0000 (15:01 -0700)]
Update README on autotools requirements to standard wording

Copy the wording from C TAP Harness, since it's slightly more
accurate.  Also mention the need for Perl to bootstrap the manual
pages.

14 years agoClean up in the kafs test suite even if skipping everything release/3.15
Russ Allbery [Sat, 15 Aug 2009 21:05:46 +0000 (14:05 -0700)]
Clean up in the kafs test suite even if skipping everything

When AFS support isn't available or built, we were still creating
basic-output and basic-errors but not removing them.  Fix that and
add -f to the rm commands so that they don't fail if the files
don't exist for some reason.

14 years agoAdd more test files to the distribution
Russ Allbery [Sat, 15 Aug 2009 21:04:06 +0000 (14:04 -0700)]
Add more test files to the distribution

More test files were missed in the restructuring of Makefile.am.

14 years agoUpdate kstart.spec for the 3.15 release
Russ Allbery [Sat, 15 Aug 2009 21:01:00 +0000 (14:01 -0700)]
Update kstart.spec for the 3.15 release