Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tmeinlschmidt/6f6b7ebab0fce8340a96bc862351ab7f to your computer and use it in GitHub Desktop.
Save tmeinlschmidt/6f6b7ebab0fce8340a96bc862351ab7f to your computer and use it in GitHub Desktop.
ktutil oneliner to crate keytab
echo -n "Password:" && read -s PASS && printf "%b" "addent -password -p $(whoami)@DOMAIN.COM -k 1 -e aes256-cts-hmac-sha1-96\n${PASS}\nwrite_kt $(whoami).keytab" | ktutil
kinit -kt $(whoami).keytab $(whoami)@DOMAIN.COM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment