Всем доброго времени суток! я новичок в данной сфере (недавно взяли сис. админом). прошу вашей помощи как у знатоков. все делал как по вашей инструкции, но на этапе запуска самбы пишет (service samba-ad-dc start)
Failed to start samba-ad-dc.service: Unit samba-ad-dc.service is masked.
при выводе testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[netlogon]"
Processing section "[sysvol]"
Loaded services file OK.
idmap range not specified for domain '*'
ERROR: Invalid idmap range for domain *!
Server role: ROLE_ACTIVE_DIRECTORY_DC
# Global parameters
[global]
realm = SRVR1.LAN
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
workgroup = SRVR1
passdb backend = samba_dsdb
server role = active directory domain controller
rpc_server:tcpip = no
rpc_daemon:spoolssd = embedded
rpc_server:spoolss = embedded
rpc_server:winreg = embedded
rpc_server:ntsvcs = embedded
rpc_server:eventlog = embedded
rpc_server:srvsvc = embedded
rpc_server:svcctl = embedded
rpc_server:default = external
winbindd:use external pipes = true
idmap_ldb:use rfc2307 = yes
idmap config * : backend = tdb
map archive = No
map readonly = no
store dos attributes = Yes
vfs objects = dfs_samba4 acl_xattr
[netlogon]
path = /var/lib/samba/sysvol/srvr1.lan/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
ну и при запросе service smbd status
smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-10-15 11:48:29 +06; 2h 27min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 29779 (code=exited, status=1/FAILURE)
Oct 15 11:48:29 callserver systemd[1]: Starting Samba SMB Daemon...
Oct 15 11:48:29 callserver smbd[29779]: [2018/10/15 11:48:29.208573, 0] ../source3/smbd/server.c:1704(main)
Oct 15 11:48:29 callserver smbd[29779]: server role = 'active directory domain controller' not compatible with running
Oct 15 11:48:29 callserver smbd[29779]: You should start 'samba' instead, and it will control starting smbd if require
Oct 15 11:48:29 callserver systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Oct 15 11:48:29 callserver systemd[1]: Failed to start Samba SMB Daemon.
Oct 15 11:48:29 callserver systemd[1]: smbd.service: Unit entered failed state.
Oct 15 11:48:29 callserver systemd[1]: smbd.service: Failed with result 'exit-code'.
не знаю поможет это или нет но на всякий случай
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-========================-=================-=================-=====================================================
ii samba 2:4.6.7+dfsg-1ubu amd64 SMB/CIFS file, print, and login server for Unix
un samba-client <none> <none> (no description available)
ii samba-common 2:4.6.7+dfsg-1ubu all common files used by both the Samba server and client
ii samba-common-bin 2:4.6.7+dfsg-1ubu amd64 Samba common files used by both the server and the cl
ii samba-dsdb-modules 2:4.6.7+dfsg-1ubu amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.6.7+dfsg-1ubu amd64 Samba core libraries
ii samba-vfs-modules 2:4.6.7+dfsg-1ubu amd64 Samba Virtual FileSystem plugins
ну и вывод журнала journalctl -xe
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.376105, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.376178, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.385442, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.385500, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.394882, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.394941, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.404183, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.404239, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.413455, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.413523, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.422833, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.422888, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.432153, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.432207, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.441438, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.441493, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.450744, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.450804, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.460231, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.460286, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.469515, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.469567, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.478851, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.478904, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.488143, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.488196, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.497380, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.497432, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.506646, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.506699, 0] ../lib/util/util_runcmd.c:316(samba_runcmd_io_
Oct 15 14:38:54 callserver samba[32410]: /usr/sbin/samba_dnsupdate: ERROR: Connecting to DNS RPC server 192.168.0.1 fa
Oct 15 14:38:54 callserver samba[32410]: [2018/10/15 14:38:54.514568, 0] ../source4/dsdb/dns/dns_update.c:290(dnsupdate
Oct 15 14:38:54 callserver samba[32410]: ../source4/dsdb/dns/dns_update.c:290: Failed DNS update - with error code 15
Oct 15 14:39:01 callserver CRON[2926]: PAM unable to dlopen(pam_winbind.so): /lib/security/pam_winbind.so: cannot open s
Oct 15 14:39:01 callserver CRON[2926]: PAM adding faulty module: pam_winbind.so
Oct 15 14:39:01 callserver CRON[2926]: PAM unable to dlopen(pam_pwquality.so): /lib/security/pam_pwquality.so: cannot op
Oct 15 14:39:01 callserver CRON[2926]: PAM adding faulty module: pam_pwquality.so
Oct 15 14:39:01 callserver CRON[2926]: pam_unix(cron:session): session opened for user root by (uid=0)