wallet-rekey-periodic

(Periodically rekey all system keytabs)

SYNOPSIS

wallet-rekey-periodic [keytab ...]

DESCRIPTION

wallet-rekey-periodic is a wrapper around wallet-rekey that adds some additional functionality: rekeying of all keytabs at known locations on the system, skipping keytabs that are marked unchanging, rekeying any keytabs with DES keys immediately but otherwise only rekeying once a month based on a random interval based on the hostname, and cleaning up old keys.

It's primarily meant to be run daily from cron, but can also be run manually from the command line to rekey specific keytab files.

wallet-rekey-periodic will, for each keytab, find a list of all principals in that keytab and see if any of them still have DES keys. If so, it will always attempt to rekey that keytab. If not, it will only do so, for a given system, once every 30 days (based on a hash of the hostname). It will also always skip keytabs that contain any principals that wallet says are unchanging, since otherwise the current wallet-rekey implementation will duplicate the existing keys.

On Heimdal systems, this command will remove keys older than a week before rekeying the keytab. This relies on ktutil functionality that's available only in Heimdal, so MIT Kerberos keytabs will slowly grow unless they're manually pruned. This will be fixed in a later release of wallet-rekey.

If no keytabs are given on the command line, wallet-rekey-periodic will rekey a set of system keytabs described below under FILES. Otherwise, it will rekey the keytabs given.

FILES

/etc/keytabs/*
/etc/krb5.keytab
/etc/webauth/keytab

The default list of locations checked for rekeyable keytabs. If run with no command-line arguments, wallet-rekey-periodic will try to rekey every principal in each keytab found at any of these paths.

AUTHOR

Russ Allbery <eagle@eyrie.org>

COPYRIGHT AND LICENSE

Copyright 2013-2014 The Board of Trustees of the Leland Stanford Junior University

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

SPDX-License-Identifier: MIT

SEE ALSO

ktutil(8), wallet(1), wallet-rekey(1)

Last spun 2022-12-12 from POD modified 2018-06-03