Skip to content

Instantly share code, notes, and snippets.

@alexisrolland
Last active May 28, 2024 10:53
Show Gist options
  • Save alexisrolland/cf42e373208c83e416c46af251aeb53c to your computer and use it in GitHub Desktop.
Save alexisrolland/cf42e373208c83e416c46af251aeb53c to your computer and use it in GitHub Desktop.
Example of commands to install and use Kerberos in Docker
# Install Kerberos in Linux based Docker image
$ export DEBIAN_FRONTEND=noninteractive
$ apt-get install -y krb5-user libpam-krb5
$ kinit <account>@<COMPANY>.ORG
$ klist
# Create keytab file
$ ktutil
$ addent -password -p <account>@<COMPANY>.ORG -k 1 -e arcfour-hmac
$ write_kt <account>.keytab
$ quit
# Authenticate with keytab file
$ kinit -kt <account>.keytab <account>@<COMPANY>.ORG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment