This is very simple shell script to install and configure the MIT kerberos on Linux Operating system.
This script has been written in shell script and tested on Centos 7 with minimal/less security configurations.
To setup the MIT kerberos server modify below lines and run the follwoing command.
Note: before run this script,Make sure kdc server and kdc client hosts are able to communicate through FQDN and necessary host entries are updated in /etc/hosts file
KRB_DOMAIN_NAME="TANU.COM"
KDC_PASSWD=kdc123 ADMIN_PASSWD=admin123 KDC_SERVER=krbserver.tanu.com
On KDC server host, run below command
./install_mit_kerberos.sh server
On KDC client host, run below command
./install_mit_kerberos.sh client
On kdc host run below command to create test user principle using root account
kadmin.local -q " addprinc -pw user123 user1"
verify user1 account in kdc client server by running below command
[root@krbcln1 kerberos-setup]# kinit user1 Password for [email protected]:
[root@krbcln1 kerberos-setup]# klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: [email protected]
Valid starting Expires Service principal 05/12/2018 18:29:00 05/13/2018 04:29:00 krbtgt/[email protected] renew until 05/13/2018 18:28:56