I am trying to join the domain for readhat server to our current Windows AD. The software using realm, to be honest I am not really familiar.
I installed the software needed but still have problem to connect/register to the domain.
This is what i did (server name I changed)
RHEL 7.4 server name: stl01
AD name: K1.LOCAL
AD server: kocdc01.k1.local
The command:
# hostname
stl01
# realm join --user=adm_narahariak@K1.LOCAL --computer-ou="OU=Linux,OU=K1 Servers,DC=m1,DC=local kocdc01.k1.local" --verbose
.......
* Created computer account: CN=STL01,OU=Linux,OU=K1 Servers,DC=k1,DC=local
* Sending netlogon pings to domain controller: cldap://10.24.90.54
* Received NetLogon info from: KOCDC01.k1.local
! Couldn't set password for computer account: STL01$: Cannot contact any KDC for requested realm
adcli: joining domain k1.local failed: Couldn't set password for computer account: STL01$: Cannot contact any KDC for requested realm
! Failed to join the domain
realm: Couldn't join realm: Failed to join the domain
#
It failed. But I checked in the OU, the name STL01 has been register (after i run the realm join command). Anyone experience with this?
Thank you,
Iwan Tamimi
commonly this is due to a DNS issue in your own domain. To authenticate properly DNS should be able to resolve the KDC in your domain. Typically the KDC should be installed on a domain controller but in your case it looks like it is installed elsewhere. When it is not able to resolve the server where the KDC resides it will result in such an error.
So preferably check your DNS and fix any issues. Either that or do the dirty method by adding the domain entries in /etc/hosts.
Cheers