[Samba] Using samba-tool to join a linux file server to the domain doesn't appear to work

Patrick Goetz pgoetz at math.utexas.edu
Wed Nov 3 10:08:44 UTC 2021


And ...

The old syntax however does work!

root at data2:/etc/samba# net ads join -U administrator
Enter administrator's password:
Using short domain name -- EA
Joined 'DATA2' to dns domain 'ea.linuxcs.com'


root at samba-dc:~# host data2
data2.ea.linuxcs.com has address 192.168.1.81

root at data2:/etc/samba# systemctl start winbind
root at data2:/etc/samba# systemctl status winbind

● winbind.service - Samba Winbind Daemon
      Loaded: loaded (/lib/systemd/system/winbind.service; enabled; 
vendor preset: enabled)
      Active: active (running) since Wed 2021-11-03 05:06:53 CDT; 8s ago
        Docs: man:winbindd(8)
              man:samba(7)
              man:smb.conf(5)
    Main PID: 6199 (winbindd)
      Status: "winbindd: ready to serve connections..."
       Tasks: 2 (limit: 4617)
      Memory: 5.2M
      CGroup: /system.slice/winbind.service
              ├─6199 /usr/sbin/winbindd --foreground --no-process-group
              └─6216 winbindd: domain child [EA]

Nov 03 05:06:53 data2 systemd[1]: Starting Samba Winbind Daemon...
Nov 03 05:06:53 data2 winbindd[6199]: [2021/11/03 05:06:53.407864,  0] 
../../source3/winbindd/winbindd_cache.c:3164(initialize_winbindd_cache)
Nov 03 05:06:53 data2 winbindd[6199]:   initialize_winbindd_cache: 
clearing cache and re-creating with version number 2
Nov 03 05:06:53 data2 systemd[1]: Started Samba Winbind Daemon.
Nov 03 05:06:53 data2 winbindd[6199]: [2021/11/03 05:06:53.414126,  0] 
../../lib/util/become_daemon.c:135(daemon_ready)
Nov 03 05:06:53 data2 winbindd[6199]:   daemon_ready: daemon 'winbindd' 
finished starting up and ready to serve connections

On 11/3/21 04:58, Patrick Goetz via samba wrote:
> 
> Looks like I need to re-architect the whole system to use an internal 
> DHCP server, because setting a static IP on the host appears to be 
> causing issues:
> 
> root at data2:/etc/samba# samba-tool domain join ea.linuxcs.com MEMBER -U 
> administrator
> Password for [EA\administrator]:
> Joined domain EA (S-1-5-21-2398640129-655337111-1434392923)
> 
> However, the host isn't known to the samba DC:
> 
> root at samba-dc:~# host data2
> root at samba-dc:~#
> 
> 
> and the winbind service won't start:
> 
> root at data2:/etc/samba# systemctl start winbind
> Job for winbind.service failed because the control process exited with 
> error code.
> See "systemctl status winbind.service" and "journalctl -xe" for details.
> 
> 
> Nov 03 04:55:53 data2 systemd[1]: Starting Samba Winbind Daemon...
> Nov 03 04:55:53 data2 winbindd[6135]: [2021/11/03 04:55:53.365885,  0] 
> ../../source3/winbindd/winbindd_cache.c:3164(initialize_winbindd_cache)
> Nov 03 04:55:53 data2 winbindd[6135]:   initialize_winbindd_cache: 
> clearing cache and re-creating with version number 2
> Nov 03 04:55:53 data2 winbindd[6135]: [2021/11/03 04:55:53.707988,  0] 
> ../../source3/winbindd/winbindd_util.c:1282(init_domain_list)
> Nov 03 04:55:53 data2 winbindd[6135]:   Could not fetch our SID - did we 
> join?
> Nov 03 04:55:53 data2 winbindd[6135]: [2021/11/03 04:55:53.708037,  0] 
> ../../source3/winbindd/winbindd.c:1462(winbindd_register_handlers)
> Nov 03 04:55:53 data2 winbindd[6135]:   unable to initialize domain list
> Nov 03 04:55:53 data2 systemd[1]: winbind.service: Main process exited, 
> code=exited, status=1/FAILURE
> Nov 03 04:55:53 data2 systemd[1]: winbind.service: Failed with result 
> 'exit-code'.
> Nov 03 04:55:53 data2 systemd[1]: Failed to start Samba Winbind Daemon.
> 



More information about the samba mailing list