Samba Net Ads Join “Cannot Find KDC” Error Fixed

When I set up Samba 3.5.4 on a Centos 5 server, I ran into a problem. I got this error whenever I tried to use the net ads join command:

If you’re thinking about purchasing a new GPU, we’d greatly appreciate it if you used our Amazon Associate links. The price you pay will be exactly the same, but Amazon provides us with a small commission for each purchase. It’s a simple way to support our site and helps us keep creating useful content for you. Recommended GPUs: RTX 5090, RTX 5080, and RTX 5070. #ad

Cannot find KDC for requested realm

I first tried to use -I flag to manually specify the KDC , but it did not work. I then realized that I did not have the realm defined in the /etc/krb5.conf file. So, I added this to the file and all went well except for the DNS error.

MYCOMPANY.COM = {
kdc = pdc.mycompany.com:88
admin_server = pdc.mycompany.com:749
default_domain = mycompany.com
}

I will post again about the DNS update error.

Be the first to comment

Leave a Reply