AD-KEYTAB(8)
β¨ AD-KEYTAB(8) β¨
okay bestie, welcome to ad-keytab, straight outta the wallet manual, section 8 π«Ά this is the little script that handles your keytabs for Active Directory principals, and yes it's about to be your new fave. buckle up π
πΈ NAME πΈ
ad-keytab β manage and display keytabs for Active Directory principals β¨
π¦ SYNOPSIS π¦
ad-keytab create|update|delete|show keytab-id [keytab-file]
[--ad_server=hostname] [--computer_rdn=dn] [--user_rdn] [--dump]
[--help] [--manual] [--debug]
π DESCRIPTION π
So this script is lowkey a wrapper around msktutil and ldapsearch, and its whole job is making host and service keytabs way less of a nightmare to create. no cap. π
It's the plug for boot strapping the Kerberos credentials you need to use Active Directory as a backend keytab store for wallet. and it shares the wallet configuration file, so it's already in the group chat, it knows the vibes.
Generally you're gonna need two keytabs to set wallet up:
- one host keytab for the wallet server host itself π₯οΈ
- one service keytab for wallet to use when it connects to an Active Directory Domain Controller π
β οΈ okay real talk for a sec: this script does not update the Wallet database. which means any keytabs it creates will be invisible from wallet. not a vibe, just a fact. π
π ACTIONS π
createβ adds a keytab to AD and updates the keytab file. Fails if the keytab already exists. (it said no duplicates, periodt π )updateβ updates an existing keytab in AD and updates the keytab file. Fails if the keytab does not exist. (can't update what isn't there, bestie π)deleteβ deletes a keytab from AD and removes it from the keytab file. bye bye πshowβ shows AD's view of the account corresponding to the keytab. this one does not usemsktutilat all β it queries AD directly using LDAP π
β¨ OPTIONS AND ARGUMENTS β¨
keytab-idβ this is either a host principal name in the formhost/<fqdn>, or a service principal name in the formservice/<id>. heads up: service keytab identifiers cannot be longer than 18 characters because of an Active Directory restriction. that's the limit, no negotiating π«keytab-filenameβ the name of the keytab file. defaults to/etc/krb5.keytabπ--conf=filenameβ the configuration file to read. the script goes hunting for a config file in this exact order:- The command line switch
--conf - The environment variable
ADKEYTAB - The file
.ad-keytab.conf - The file
/etc/ad-keytab.conf
- The command line switch
--ad_server=hostnameβ the name of the Active Directory host to connect to. and it genuinely matters that the script contacts only _one_ server, because propagation inside an Active Directory domain can be quite slow. pick one, stay loyal π«Ά--base_dn=ou=org,dc=domain,dc=tldβ the base distinguished name holding both computer and user accounts ποΈ--computer_rdn=dnβ the relative distinguished name to use as the base DN for both creating host keytabs and searching Active Directory. the distinguished name it forms will becomputer_rdn,base_dn.--user_rdn=dnβ the relative distinguished name to use as the base DN for LDAP searches of Active Directory for service keytabs. the distinguished name it forms will beuser_rdn_rdn,base_dn.--dumpβ when displaying keytab attributes, show all of the attributes. the whole tea β--helpβ displays help text.--manualβ displays more complete help text. the extended cut π¬--debugβ turns on debugging displays. very loud, very informative π
π SEE ALSO π
Set the documentation for Wallet::Config for configuration information, i.e. perldoc Wallet::Config. π go read it, iykyk
π AUTHOR π
Bill MacAllister <whm@dropbox.com> β king behavior honestly π
π COPYRIGHT AND LICENSE π
Copyright 2016 Dropbox, Inc.
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
and that's the whole page, bestie!! π₯³ this was version 1.5, dated 2024-04-30, from the wallet source, and it's been an absolute pleasure. go make some keytabs, you're gonna slay π β¨π¦πΈ
π¦ where this page comes from
- debian trixie: krb5-wallet-server 1.7 Β· MIT
- ubuntu resolute: krb5-wallet-server 1.7 Β· MIT
- ubuntu stonking: krb5-wallet-server 1.7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms