KIMPERSONATE(8)
π KIMPERSONATE(8) π
okay bestie, welcome to kimpersonate, part of the System Manager's Manual β yes the whole vibe is "pretend to be someone else, but like, legitimately, with a key" π
β¨ NAME β¨
kimpersonate β impersonate a user when there exist a keyfile or KeyFile π«Ά
πΈ SYNOPSIS πΈ
kimpersonate [-s string | --ccache=string] [-s string | --server=string]
[-c string | --client=string] [-k string | --keytab=string]
[-5 | --krb5] [-A | --add] [-R | --referral]
[-e integer | --expire-time=integer]
[-a string | --client-address=string]
[-t string | --enc-type=string] [--session-enc-type=string]
[-f string | --ticket-flags=string] [--verbose] [--version]
[--help]
π DESCRIPTION π
So. The kimpersonate program creates a "fake" ticket using the service-key of the service, and stores it in the given (or default) ccache. It's giving testing tool energy β that's literally what it's for, it's useful for testing β¨ The service key can be read from a Kerberos 5 keytab or an AFS KeyFile. Two whole sources, no cap.
Supported options, let's go:
--ccache=stringβ the ccache into which to store the ticket π-s string,--server=stringβ name of server principal-c string,--client=stringβ name of client principal-k string,--keytab=stringβ name of keytab file-5,--krb5β create a Kerberos 5 ticket β¨-A,--addβ don't re-initialize the ccache, instead add the ticket to an existing ccache. (like, append bestie, don't wipe it π)-R,--referralβ simulate a referrals-based KDC client by storing two entries, one with the empty realm for the service principal name π-e integer,--expire-time=integerβ lifetime of ticket in seconds-a string,--client-address=stringβ address of client-t string,--enc-type=stringβ encryption type (defaults to"aes256-cts-hmac-sha1-96")--session-enc-type=stringβ session encryption type (defaults to enc-type or"des-cbc-crc"for afs service tickets)-f string,--ticket-flags=stringβ ticket flags for krb5 ticket--verboseβ Verbose output (it will talk. a lot. love that for us π¬)--versionβ Print version--helpβ
π¦ FILES π¦
Uses /etc/krb5.keytab, and /usr/afs/etc/KeyFile when available and the -k option is used with an appropriate prefix.
π EXAMPLES π
kimpersonate can be used in samba root preexec option or for debugging. And like, check this:
kimpersonate -s host/hummel.e.kth.se@E.KTH.SE -c lha@E.KTH.SE -5
will create a Kerberos 5 ticket for lha@E.KTH.SE for the host hummel.e.kth.se if there exists a keytab entry for it in /etc/krb5.keytab. π
In combination with the ktutil command, this is useful for testing. For example,
ktutil -k tkt add -p host/foo.test@TEST -V2 -e aes256-cts-hmac-sha1-96
-r
kimpersonate --cache=tcc -s host/foo.test@TEST -c jdoe@TEST -k tkt
--referral
β οΈ okay literally copy those commands exactly, bestie β --cache=tcc is what's written down, don't go "fixing" it on me π
π₯ SEE ALSO π₯
π AUTHORS π
Love Hornquist Astrand <lha@kth.se>
and that's the whole page, periodt π this icon of a manual page came from <strong>Debian</strong>, dated <strong>September 18, 2006</strong> β ancient, yes, but she ate and left no crumbs. mwah π«Άβ¨
π¦ where this page comes from
- alpine 3.22: heimdal-doc 7.8.0-r4 Β· BSD-3-Clause
- alpine 3.23: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- alpine 3.24: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- debian bookworm: heimdal-clients 7.8.git20221117.28daf24+dfsg-2 Β· BSD-3-Clause
- debian trixie: heimdal-clients 7.8.git20221117.28daf24+dfsg-9+deb13u1 Β· BSD-3-Clause
- epel 10: heimdal-workstation 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-workstation 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-workstation 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-workstation 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-workstation 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: heimdal 7.8.0-unstable-2024-09-10
- ubuntu jammy: heimdal-clients 7.7.0+dfsg-3ubuntu1 Β· BSD-3-Clause
- ubuntu noble: heimdal-clients 7.8.git20221117.28daf24+dfsg-5ubuntu3 Β· BSD-3-Clause
- ubuntu questing: heimdal-clients 7.8.git20221117.28daf24+dfsg-9ubuntu1
- ubuntu resolute: heimdal-clients 7.8.git20221117.28daf24+dfsg-11ubuntu1 Β· BSD-3-Clause
- ubuntu stonking: heimdal-clients 7.8.git20240113.1b4565a+dfsg-2ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2002 - 2007 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms