Всем привет! Настраиваю samba 4.11.4 (Compile Source) в качестве AD DC на ОС Debian 10.2 по этому руководству.
Руководство всегда работало для версий 4.8.x и 4.9.x.
Собирал с этими флагами:
./configure --bindir=/usr/local/bin --sbindir=/usr/local/sbin \
--sysconfdir=/etc/samba --localstatedir=/var --libdir=/usr/local \
--datarootdir=/usr/share/samba --mandir=/usr/share/man --with-systemd \
--with-logfilebase=/var/log/samba --enable-selftest
# systemctl status samba-ad-dc
● samba-ad-dc.service - Samba Active Directory Domain Controller
Loaded: loaded (/etc/systemd/system/samba-ad-dc.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-12-24 14:40:58 MSK; 5s ago
Process: 7805 ExecStart=/usr/local/sbin/samba -D (code=exited, status=0/SUCCESS)
Main PID: 7806 (code=exited, status=1/FAILURE)
дек 24 14:40:58 dc0 systemd[1]: Starting Samba Active Directory Domain Controller...
дек 24 14:40:58 dc0 samba[7805]: [2019/12/24 14:40:58.291087, 0] ../../source4/smbd/server.c:624(binary_smbd_main)
дек 24 14:40:58 dc0 samba[7805]: samba version 4.11.4 started.
дек 24 14:40:58 dc0 systemd[1]: samba-ad-dc.service: Can't open PID file /run/samba.pid (yet?) after start: No such file or directory
дек 24 14:40:58 dc0 samba[7805]: Copyright Andrew Tridgell and the Samba Team 1992-2019
дек 24 14:40:58 dc0 systemd[1]: Started Samba Active Directory Domain Controller.
дек 24 14:40:58 dc0 samba[7806]: [2019/12/24 14:40:58.874002, 0] ../../lib/util/become_daemon.c:122(exit_daemon)
дек 24 14:40:58 dc0 samba[7806]: exit_daemon: daemon failed to start: Samba failed to setup parent messaging, error code -1073741801
дек 24 14:40:58 dc0 systemd[1]: samba-ad-dc.service: Main process exited, code=exited, status=1/FAILURE
дек 24 14:40:58 dc0 systemd[1]: samba-ad-dc.service: Failed with result 'exit-code'.
# cat /var/log/samba/log.samba
[2019/12/24 14:30:49.021699, 0] ../../source4/smbd/server.c:624(binary_smbd_main)
samba version 4.11.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
[2019/12/24 14:30:49.570644, 0] ../../lib/util/become_daemon.c:122(exit_daemon)
exit_daemon: daemon failed to start: Samba failed to setup parent messaging, error code -1073741801
[2019/12/24 14:40:58.291087, 0] ../../source4/smbd/server.c:624(binary_smbd_main)
samba version 4.11.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
[2019/12/24 14:40:58.874002, 0] ../../lib/util/become_daemon.c:122(exit_daemon)
exit_daemon: daemon failed to start: Samba failed to setup parent messaging, error code -1073741801
# cat /etc/systemd/system/samba-ad-dc.service
[Unit]
Description=Samba Active Directory Domain Controller
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart=/usr/local/sbin/samba -D
PIDFile=/var/run/samba.pid
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
# systemctl daemon-reload