]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Clean up akimpersonate and use for server-to-server
authorBen Kaduk <kaduk@mit.edu>
Tue, 14 May 2013 23:37:59 +0000 (19:37 -0400)
committerSimon Wilkinson <sxw@your-file-system.com>
Wed, 17 Jul 2013 12:14:15 +0000 (13:14 +0100)
commit95d57c74476c5a02ce6d9ca913dcbf88ac5c1143
treef3ce16b94bd34ee02429cf08d8676948beef9940
parent15b77552b22e3ff3e7478008673775a45047f600
Clean up akimpersonate and use for server-to-server

Since a6d7cacfd, aklog has been able to print a krb5 ticket to
itself for an arbitrary client principal, allowing a user with
access to the cell's krb5 key to get tokens as an arbitrary user.

Now that it is possible to use native krb5 tickets with non-DES
enctypes for authentication, and akimpersonate is available from libauth,
use printed native krb5 tickets for server-to-server communication (as well
as the -localauth versions of the client utilities).

Remove the early call to afsconf_GetLatestKey() in
afsconf_PickClientSecObj() so that we do not end up picking an old DES
key before we try to find a better key to use.

Before doing so, refactor the akimpersonate code to be more usable
and readable, and eliminate some dead code.  For example, we always printed
addressless tickets, so that code could be removed.  Other code had excessive
stack usage for a library routine, which is eliminated.  Use a start time
of 0 instead of 300 so that the printed ticket will always be
detected as infinite-lifetime.

In order to ensure usability on all platforms (in particular Solaris),
provide a couple more compat shims to implement routines which are not
always available from the krb5 library, in particular encode_krb5_ticket
and encode_krb5_enc_tkt_part.  Thanks to Andrew Deason for implementing
these compatability routines.

UKERNEL doesn't need this stuff.
src/aklog/aklog.c
src/auth/Makefile.in
src/auth/akimpersonate.c
src/auth/akimpersonate.h
src/auth/akimpersonate_v5gen.c [new file with mode: 0644]
src/auth/akimpersonate_v5gen.h [new file with mode: 0644]
src/auth/authcon.c
src/libafsauthent/Makefile.in
src/rxkad/Makefile.in
src/shlibafsauthent/Makefile.in
src/shlibafsrpc/libafsrpc.map