Hi @Mamta Chawla,
Prior to retive your keytabs form the host, you need to ensure that, host is prepared to connect to KDC.
by default the configuraton details can be found at /etc/krb5.conf file, so after installing the krb5-workstation (krb5-client in SLES).
[libdefaults]
ticket_lifetime = 24000
default_realm = <YOUR_REALM>
dns_lookup_realm = false
dns_lookup_kdc = false
[realms]
<YOUR_REALM> = {
kdc = <YOUR_AD_SERVER1>:88
kdc = <YOUR_AD_SERVER2>:88
}
#######Replace exmple.com with your REALM Name
[domain_realm]
.example.com = EXAMPLE.COM
example.com = EXAMPLE.COM
[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}
alter natively you can copy the same file from the host which is already configured for kerberos client.
once after that, you may use the above command to retrieve the keytabs.
however, please note that, you must have access to retrieve the keytabs from that host and user.
for additional details please follow the instructions given at : https://hortonworks.com/blog/enabling-kerberos-hdp-active-directory-integration/
for more on step by step instructions you may refer here