[Samba] Failed to join domain: failed to find DC for domain...

Rowland Penny rpenny at samba.org
Sat Sep 9 15:56:54 UTC 2023


On Sat, 9 Sep 2023 11:29:53 -0400
Rob Campbell via samba <samba at lists.samba.org> wrote:

> >
> > It looks like DNS is failing, does /etc/resolv.conf look like this:
> >
> > search home.rob-campbell.lan
> > nameserver A.DC.IPADDRESS
> >
> 
> This is what it looks like in this order (if that matters)
> nameserver 10.0.0.10
> nameserver 10.0.0.1
> search HOME.ROB-CAMPBELL.LAN

The order doesn't matter, just so long as the first nameserver
(10.0.0.10) is a DC.

> 
> >
> > While you are checking, does /etc/hosts contain a line like this:
> >
> > computers_ip computers FQDN computers short_hostname
> >
> 
> Yes
> 
> root at D01:~/.bin# realm leave

I suggest you stop using realmd, it isn't a Samba product and you do
not need it, the same goes for sssd if it is also installed.

> root at D01:~/.bin# net ads join -U administrator
> Password for [HOME\administrator]:
> Failed to join domain: failed to connect to AD: No logon servers are
> currently available to service the logon request.

Why can it not find a DC ? Is there a firewall or similar running ?

> root at D01:~/.bin# samba-tool domain join home.rob-campbell.lan MEMBER
> -U administrator

That does basically the same as 'net ads join', so if one fails, the
other isn't likely to work.


> 
> ./check_smb.sh
>  144310 ?        Ss     0:00 smbd
>  144311 ?        S      0:00 smbd
>  144312 ?        S      0:00 smbd
>  144320 ?        Ss     0:00 nmbd
>  144321 pts/1    S+     0:00 /bin/bash ./check_smb.sh
>  144323 pts/1    S+     0:00 grep -E samba|smb|nmb|winbind

From that, it looks like smbd and nmbd are running, but winbind isn't.
At this point (before the join), none of them should be running.

Rowland





More information about the samba mailing list