On 7/14/22 3:04 PM, Maurizio Caloro via samba wrote:> hello
> i need little help to install me "bullseye-samba415" from
van-bell, i
> have now do every step from this.
>
?>https://github.com/thctlo/samba4/blob/master/howtos/stretch-base-2.0-samba-minimal-ad.txt#L305
> but after i cam to the point to restart the service it will appair this,
> the samba-ad-dc dont start.
> ?? ?>systemctl restart bind9 ntp samba-ad-dc
>
> thanks for help
> maurizio
>
> ? samba-ad-dc.service - Samba AD Daemon
> ???? Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled;
> vendor preset: enabled)
> ???? Active: failed (Result: exit-code) since Thu 2022-07-14 19:58:55
> BST; 8s ago
> ?????? Docs: man:samba(8)
> ???????????? man:samba(7)
> ???????????? man:smb.conf(5)
> ??? Process: 914 ExecStart=/usr/sbin/samba --foreground
> --no-process-group $SAMBAOPTIONS (code=exited, status=1/FAILURE)
> ?? Main PID: 914 (code=exited, status=1/FAILURE)
> ???? Status: "samba: ready to serve connections..."
> ??????? CPU: 566ms
>
> Jul 14 19:58:55 TestAD samba[996]: [2022/07/14 19:58:55.584415,? 0]
> ../../source4/samba/service_stream.c:372(stream_setup_sock>
> Jul 14 19:58:55 TestAD samba[996]:?? stream_setup_socket: Failed to
> listen on 0.0.0.0:53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
> Jul 14 19:58:55 TestAD samba[996]: [2022/07/14 19:58:55.584444,? 0]
> ../../source4/dns_server/dns_server.c:648(dns_add_socket)
> Jul 14 19:58:55 TestAD samba[996]:?? Failed to bind to 0.0.0.0:53 TCP -
> NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
Looks like you are running another DNS server on the same machine (port 53)
Sometimes it is not a full DNS but one like dnsmasq started by other
tools, like for example libvirt (The default NATted network for libvirt
VMs uses dnsmask)
If that is the case, yuo can retrict Samba to only bind to some
interfaces with "interfaces" and "bind interfaces only" in
smb.conf.
> Jul 14 19:58:55 TestAD samba[996]: [2022/07/14 19:58:55.584456,? 0]
> ../../source4/samba/service_task.c:36(task_server_terminat>
> Jul 14 19:58:55 TestAD samba[996]:?? task_server_terminate:
> task_server_terminate: [dns failed to setup interfaces]
> Jul 14 19:58:55 TestAD samba[914]: [2022/07/14 19:58:55.585149,? 0]
> ../../source4/samba/server.c:392(samba_terminate)
> Jul 14 19:58:55 TestAD samba[914]:?? samba_terminate: samba_terminate of
> samba 914: dns failed to setup interfaces
> Jul 14 19:58:55 TestAD systemd[1]: samba-ad-dc.service: Main process
> exited, code=exited, status=1/FAILURE
> Jul 14 19:58:55 TestAD systemd[1]: samba-ad-dc.service: Failed with
> result 'exit-code'.
> root at TestAD:/etc/samba#
> root at TestAD:/etc/samba#
> root at TestAD:/etc/samba#
> root at TestAD:/etc/samba# kinit administrator
> kinit: Cannot find KDC for realm "CALORO.M" while getting initial
> credentials
> root at TestAD:/etc/samba#
>
>
>