Skip to content

Instantly share code, notes, and snippets.

@sarjarapu
Created October 5, 2018 04:32
Show Gist options
  • Save sarjarapu/e9ace730bf57e2d2b5ece18025e12f0c to your computer and use it in GitHub Desktop.
Save sarjarapu/e9ace730bf57e2d2b5ece18025e12f0c to your computer and use it in GitHub Desktop.
A bash script to install Kerberos server on KDC server and configure the files with MDBKRB5.NET realm
sudo yum install -y krb5-server
# Rename the Kerberos Realm name from EXAMPLE.COM to MDBKRB5.NET, or any name of your choice
sudo sed -i 's/EXAMPLE.COM/MDBKRB5.NET/g' /var/kerberos/krb5kdc/kdc.conf
sudo sed -i 's/EXAMPLE.COM/MDBKRB5.NET/g' /var/kerberos/krb5kdc/kadm5.acl
sudo sed -i 's/kerberos.example.com/kdc.mdbkrb5.net/g' /etc/krb5.conf
sudo sed -i 's/example.com/mdbkrb5.net/g' /etc/krb5.conf
sudo sed -i 's/EXAMPLE.COM/MDBKRB5.NET/g' /etc/krb5.conf
sudo sed -i 's/#//g' /etc/krb5.conf
sudo sed -i 's/^ Configuration/# Configuration/g' /etc/krb5.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment