Tuesday, 18 February 2020

STEP BY STEP PRACTICALS - ANSIBLE - HOW TO INSTALL AND CONFIGURE KERBEROS FOR WINDOWS SERVERS

STEP BY STEP PRACTICALS - ANSIBLE

 

I have created the below demo environment:-


Master Server - 192.168.181.12
Windows DC Server - 192.168.181.5
Member Server - 192.168.181.7

1) Please run the below commands to install pre-requisists for kerberos in linux

yum -y group install “Development Tools”
yum -y install epel-release
yum -y install python-devel krb5-devel krb5-libs krb5-workstation
yum install -y ansible python2-winrm
yum -y install python-pip
yum install -y python-requests-kerberos
sudo pip install --upgrade requests-kerberos
pip install --upgrade pip

2) Please make sure that you do the DNS entry for your DNS server in your environment.


3) Please also edit the krb5.conf file located in the /etc folder.

In the below example, I have done the entries for:-

default_realm = ABC.LOCAL

ABC.LOCAL = {

kdc = test-server1.abc.local
admin_server - test-server1.abc.local
}

For domain_realm

.abc.local = ABC.LOCAL
abc.local = ABC.LOCAL


4) If kerberos is configured correctly, the below command will ask for the password as shown below:-

No comments:

Post a comment