[SOLVED] Samba ad will not start,
by paalmarker from LinuxQuestions.org on (#6F7X9)
OS =ubuntu 22.04
samba version= Version 4.15.13-Ubuntu
I have been running samba as stand-alone domain controller for many years. As I am changing server, I want to install it as domain controller Active Directory.
The server runs also the dns service, named, for the domain. From the documentation I read, I figuered out to install samba with dns backend as samba_internal.
From a clean install I used the command:
samba-tool domain provision --server-role=dc --use-rfc2307 --dns-backend=SAMBA_INTERNAL --realm=bibsrv-dc.baerum.bibweb.no --domain=bibsrv-dc --adminpass=Password00
then:
systemctl unmask samba-ad-dc
systemctl enable samba-ad-dc
systemctl start samba-ad-dc
systemctl status samba-ad-dc gives:
Failed to bind to :::53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
Oct 02 14:33:22 bibsrv samba[464968]: [2023/10/02 14:33:22.960190, 0] ../../source4/samba/service_stream.c:372(stream_setup_socket)
Oct 02 14:33:22 bibsrv samba[464968]: stream_setup_socket: Failed to listen on 0.0.0.0:53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
Oct 02 14:33:22 bibsrv samba[464968]: [2023/10/02 14:33:22.960237, 0] ../../source4/dns_server/dns_server.c:648(dns_add_socket)
Oct 02 14:33:22 bibsrv samba[464968]: Failed to bind to 0.0.0.0:53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
Oct 02 14:33:22 bibsrv samba[464968]: [2023/10/02 14:33:22.960279, 0] ../../source4/samba/service_task.c:36(task_server_terminate)
Oct 02 14:33:22 bibsrv samba[464968]: task_server_terminate: task_server_terminate: [dns failed to setup interfaces]
Oct 02 14:33:22 bibsrv systemd[1]: samba-ad-dc.service: Main process exited, code=exited, status=1/FAILURE
Oct 02 14:33:23 bibsrv systemd[1]: samba-ad-dc.service: Failed with result 'exit-code'.
Current global section in /etc/samba/smb.conf:
[global]
dns forwarder = 10.124.64.9
netbios name = BIBSRV
realm = BIBSRV-DC.BAERUM.BIBWEB.NO
server role = active directory domain controller
workgroup = BIBSRV-DC
idmap_ldb:use rfc2307 = yes
Obviously, the samba configuration to dns is misconfigurated.
Could someone please point out the direction for a solution her?
samba version= Version 4.15.13-Ubuntu
I have been running samba as stand-alone domain controller for many years. As I am changing server, I want to install it as domain controller Active Directory.
The server runs also the dns service, named, for the domain. From the documentation I read, I figuered out to install samba with dns backend as samba_internal.
From a clean install I used the command:
samba-tool domain provision --server-role=dc --use-rfc2307 --dns-backend=SAMBA_INTERNAL --realm=bibsrv-dc.baerum.bibweb.no --domain=bibsrv-dc --adminpass=Password00
then:
systemctl unmask samba-ad-dc
systemctl enable samba-ad-dc
systemctl start samba-ad-dc
systemctl status samba-ad-dc gives:
Failed to bind to :::53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
Oct 02 14:33:22 bibsrv samba[464968]: [2023/10/02 14:33:22.960190, 0] ../../source4/samba/service_stream.c:372(stream_setup_socket)
Oct 02 14:33:22 bibsrv samba[464968]: stream_setup_socket: Failed to listen on 0.0.0.0:53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
Oct 02 14:33:22 bibsrv samba[464968]: [2023/10/02 14:33:22.960237, 0] ../../source4/dns_server/dns_server.c:648(dns_add_socket)
Oct 02 14:33:22 bibsrv samba[464968]: Failed to bind to 0.0.0.0:53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED
Oct 02 14:33:22 bibsrv samba[464968]: [2023/10/02 14:33:22.960279, 0] ../../source4/samba/service_task.c:36(task_server_terminate)
Oct 02 14:33:22 bibsrv samba[464968]: task_server_terminate: task_server_terminate: [dns failed to setup interfaces]
Oct 02 14:33:22 bibsrv systemd[1]: samba-ad-dc.service: Main process exited, code=exited, status=1/FAILURE
Oct 02 14:33:23 bibsrv systemd[1]: samba-ad-dc.service: Failed with result 'exit-code'.
Current global section in /etc/samba/smb.conf:
[global]
dns forwarder = 10.124.64.9
netbios name = BIBSRV
realm = BIBSRV-DC.BAERUM.BIBWEB.NO
server role = active directory domain controller
workgroup = BIBSRV-DC
idmap_ldb:use rfc2307 = yes
Obviously, the samba configuration to dns is misconfigurated.
Could someone please point out the direction for a solution her?