GSS-TOKEN(1)

πŸ“¦ version 7.8.0-unstable-2024-09, in nixpkgs unstable

✨ 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 into ccache. This only makes sense if -r is 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 -r is not specified. Client vibes only, lowkey. πŸ’
  • -M β€” copy the default ccache to a MEMORY: 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 size maxsize. 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 operation count times. 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 and gss-token will 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