Quote:
Originally Posted by kbp
Try checking /etc/hosts format, should be '<ip_address> <fqdn> <short_hostname>', also check the output of 'hostname' and 'hostname -s'
|
I had the format the other way about, i.e. short_hostname before fqdn, but even changing that seemed to make no difference.
I've managed to get it working. I created a new zone in my DNS server and used the DNS server instead of the hosts file, I also reinstalled the KDC server, here is a list of steps that I took to get it to work from scratch:
installed kdc (yum install krb5-server)
created kdc db (kdb5_util create -s)
added root/admin (kadmin.local -q "addprinc root/admin")
added krb (kadmin.local -q "addprinc krb")
ssh kdcserver from kdcserver-- complains about missing host/kdcserver.domain.com in Kerberos database
ssh kdcserver from client-- complains about missing host/kdcserver.domain.com in Kerberos database
kadmin.local on kdcserver
addprinc -randkey host/kdcserver.domain.com
ssh kdcserver from kdcserver-- complains EM Get Key table file '/etc/krb5.keytab' not found
ssh kdcserver from client-- complains EM Get Key table file '/etc/krb5.keytab' not found
added host/kdcserver.domain.com to /etc/krb5.keytab in kdcserver (kadmin | ktadd -k /etc/krb5.keytab host/kdcserver.domain.com)
ssh kdcserver from kdcserver works !!!!
ssh kdcserver from client works !!!!
Tried ssh client from kdcserver -- complains about missing host/client.domain.com in Kerberos database
kadmin.local on kdcserver
addprinc -randkey host/client.domain.com
added host/client.domain.com to /etc/krb5.keytab in client
ssh client from kdcserver works!!!!!!
Thus, In order to add a new host I would need to do:
on kdcserver
kadmin.local
addprinc -randkey host/newhost.domain.com
and add host/newhost.domain.com to /etc/krb5.keytab in newhost
and this does indeed work.
