GSS-TOKEN(1)
β¨ GSS-TOKEN(1) β¨
Okay so this is from the LOCAL manual, and she's literally the moment. π Welcome to gss-token β she generates and consumes base64 GSS tokens, and she's about to become your new bestie. No cap. π
πΈ NAME πΈ
gss-token β generate and consume base64 GSS tokens. She's giving utility realness and I'm obsessed. π
π¦ SYNOPSIS π¦
gss-token [-DNn] [-c -count] service@host
gss-token -r [-MNln] [-C ccache] [-S maxsize] [-c -count] [-m -mech]
[service@host]
π DESCRIPTION π
gss-token generates and consumes base64 encoded GSS tokens. By default, she runs as an initiator, and with the -r flag she becomes an acceptor. So she's flexible like that. πββοΈ
She supports the following options β bestie, take notes: β¨
-C ccacheβ write an accepted delegated credential intoccache. This only makes sense if-ris specified. So don't come for her unless you're in acceptor mode. π-Dβ delegate credentials. This only makes sense as a client, that is when-ris not specified. Client vibes only, lowkey. π-Mβ copy the default ccache to aMEMORY:ccache before each separate write operation. The default ccache will not pick up any obtained service tickets. If specified with-c, the cache will revert to its original state before each new token is written. This can be used to load test the KDC. (Stress testing the KDC? She ate. π₯)-Nβ prependβNegotiate βto generated tokens and expect it on consumed tokens. It's giving negotiate energy, fr fr. π£οΈ-S maxsizeβ split each token that is generated into components of maximum sizemaxsize. Each token is base64 encoded and output separately. So if your token is thicc, she'll break it down into snackable pieces. π-c countβ repeat the operationcounttimes. This flag only changes the behaviour when operating in initiator mode. This is good for very basic benchmarking. Count her in, bestie. π’-lβ loop indefinitely in acceptor mode. She'll go forever, literally. π-m mechβ specifies the GSS mechanism that will be used in initiator mode. If a mechanism name ofβ?βis specified, a list of supported mechanisms will be output andgss-tokenwill exit. So?is your cheat sheet β iconic. β-nβ do not output the generated tokens. Silent but deadly. π€«-rβ run in acceptor mode. Switch it up! π
Okay so gss-token takes one argument, a host@service specifier. The argument is required when running as an initiator but is optional as an acceptor. So don't forget it unless you're acceptoring. π
Here's the vibe: gss-token will try to read a token whenever the GSS mechanism expects one, and will output a token whenever the GSS mechanism provides one. Tokens are base64 encoded and terminated by either two successive newlines or one newline and EOF. The base64 encoding may be broken up by single newlines which will be ignored when read.
β οΈ No extra whitespace will be ignored. So keep it clean, no cap. π§Ό
π EXAMPLES π
To test a simple GSS mechanism which doesn't require a round trip, a single /bin/sh pipeline will suffice:
$ export KRB5_KTNAME=/path/to/keytab
$ gss-token HTTP@$(hostname) | gss-token -r
See? She's pipeline-ready. Slay. π β¨
π₯ SEE ALSO π₯
This page is from Debian, dated May 12, 2014, and it's for GSS-TOKEN(1). Periodt. π β¨π«Ά
π¦ where this page comes from
- nixpkgs unstable: heimdal 7.8.0-unstable-2024-09-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms