LINUX.ORG.RU

Samba 4.11.X

 , , ,


1

2

Всем привет! Настраиваю 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
После запуска ч/з systemd получаю такие ошибки:
# 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
Как правильно завести новую самбу? Спасибо!

Ответ на: комментарий от AEP

«Нормальное руководство», не нужно тут. Писалось для своих нужд путем проб и ошибок. В пример привел, чтобы можно было увидеть весь порядок действий.. Хочется посвежее.. В репах 4.8.5.

Breaking ()
Ответ на: комментарий от Breaking
INFO: Current debug levels:
  all: 9
  tdb: 9
  printdrivers: 9
  lanman: 9
  smb: 9
  rpc_parse: 9
  rpc_srv: 9
  rpc_cli: 9
  passdb: 9
  sam: 9
  auth: 9
  winbind: 9
  vfs: 9
  idmap: 9
  quota: 9
  acls: 9
  locking: 9
  msdfs: 9
  dmapi: 9
  registry: 9
  scavenger: 9
  dns: 9
  ldb: 9
  tevent: 9
  auth_audit: 9
  auth_json_audit: 9
  kerberos: 9
  drs_repl: 9
  smb2: 9
  smb2_credits: 9
  dsdb_audit: 9
  dsdb_json_audit: 9
  dsdb_password_audit: 9
  dsdb_password_json_audit: 9
  dsdb_transaction_audit: 9
  dsdb_transaction_json_audit: 9
  dsdb_group_audit: 9
  dsdb_group_json_audit: 9
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
Processing section "[global]"
Processing section "[sysvol]"
Processing section "[netlogon]"
pm_process() returned Yes```
Breaking ()