KEYTAB-BACKEND(8)
β¨ NAME β¨
okay so bestie, meet keytab-backend β she's the keytab-backend(8) girlie, and what she does is pull keytabs straight out of the KDC without touching the key. no rekeying, no drama, no chaos π
π SYNOPSIS π
keytab-backend retrieve principal
π DESCRIPTION π
so like, keytab-backend goes and retrieves a keytab for an existing principal from the KDC database without changing the current key. the whole point? you can generate a keytab for a service without rekeying that service. iconic behaviour honestly π«Ά
heads up though β it requires a kadmin.local patched to support the -norandkey option to ktadd. no patch, no vibes.
this script is meant to run under remctld, okurrr? and here's the breakdown of what happens:
- on success β it prints the keytab to standard output, logs a success message to syslog (facility
auth, priorityinfo), and exits with status0. slay β¨ - on failure β it prints out an error message, logs an error to syslog (facility
auth, priorityerr), and exits with a non-zero status. π
now, the principal gets put through a vibe check first: basic sanity means it only accepts alphanumerics, _, and - with an optional instance, and then only alphanumerics, _, -, and . in the realm. after that it gets checked against a configuration file that lists regexes of principals that can be retrieved.
bestie, when you deploy this software, limit as tightly as possible which principals can be downloaded in this fashion. generally only shared service principals used on multiple systems should be made available this way. no cap, lock it down π
and fr fr, one more thing: keytab-backend does not do any authorization checks. those should be done by remctld before it is called. not her job, not her problem π
πΈ FILES πΈ
/etc/krb5kdc/allow-extractβ the configuration file that controls which principals can have their keytabs retrieved. blank lines and lines starting with#, as well as anything after#on a line, are ignored. all other lines should be Perl regular expressions, one per line, that match principals whose keytabs can be retrieved bykeytab-backend. any principal that does not match one of those regular expressions cannot be retrieved. so write your regexes carefully bestie π/var/lib/keytabsβ the temporary directory used for creating keytabs.keytab-backendwill create the keytab in this directory, make sure that was successful, and then delete the temporary file after the results have been sent to standard output. clean girl energy π§
π AUTHOR π
Russ Allbery <eagle@eyrie.org>
π COPYRIGHT AND LICENSE π
Copyright 2006-2008, 2010, 2013 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 π
This program is part of the wallet system. The current version is available from <https://www.eyrie.org/~eagle/software/wallet/>.
okay that's the whole page bestie, you ate that π
this was keytab-backend(8) from the wallet system, version 1.5, dated 2024-04-30 β go forth and extract responsibly, mwah ππ¦β¨
π¦ where this page comes from
- debian trixie: krb5-keytab-backend 1.7 Β· MIT
- ubuntu resolute: krb5-keytab-backend 1.7 Β· MIT
- ubuntu stonking: krb5-keytab-backend 1.7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms