testparm
systemctl status smb
[root@localhost ~]# testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
dedicated keytab file = /etc/krb5.keytab
dns proxy = No
kerberos method = dedicated keytab
ldap admin dn = cn=admin,dc=domain,dc=ru
ldap group suffix = ou=Group
ldap suffix = dc=domain,dc=ru
ldap user suffix = ou=People
log file = /var/log/samba/log.%m
max log size = 50
passdb backend = ldapsam:ldap://127.0.0.1/
printcap name = cups
realm = REALM
security = USER
server string = Samba server on %h (v. %v)
idmap config * : backend = tdb
use sendfile = Yes
[share]
comment = Commonplace
path = /srv/share
read only = No
[homes]
browseable = No
comment = Home Directory for '%u'
read only = No
[root@localhost ~]# systemctl status smb
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; disabled; vendor preset: di>
Active: failed (Result: exit-code) since Fri 2021-07-09 15:30:21 MSK; 42s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 5965 ExecStart=/usr/sbin/smbd --no-process-group $SMBDOPTIONS (code=>
Main PID: 5967 (code=exited, status=1/FAILURE)
июл 09 15:30:21 localhost systemd[1]: smb.service: Can't open PID file /run/smb>
июл 09 15:30:21 localhost smbd[5967]: [2021/07/09 15:30:21.632856, 0] ../../so>
июл 09 15:30:21 localhost smbd[5967]: fetch_ldap_pw: neither ldap secret retr>
июл 09 15:30:21 localhost smbd[5967]: [2021/07/09 15:30:21.633193, 0] ../../so>
июл 09 15:30:21 localhost smbd[5967]: pdb_init_ldapsam_common: Failed to retr>
июл 09 15:30:21 localhost smbd[5967]: [2021/07/09 15:30:21.633275, 0] ../../so>
июл 09 15:30:21 localhost smbd[5967]: pdb backend ldapsam:ldap://127.0.0.1/ d>
июл 09 15:30:21 localhost systemd[1]: Started Samba SMB Daemon.
июл 09 15:30:21 localhost systemd[1]: smb.service: Main process exited, code=ex>
июл 09 15:30:21 localhost systemd[1]: smb.service: Failed with result 'exit-cod>
lines 1-19/19 (END)...skipping...
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-07-09 15:30:21 MSK; 42s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 5965 ExecStart=/usr/sbin/smbd --no-process-group $SMBDOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 5967 (code=exited, status=1/FAILURE)
июл 09 15:30:21 localhost systemd[1]: smb.service: Can't open PID file /run/smbd.pid (yet?) after start: No such file or directory
июл 09 15:30:21 localhost smbd[5967]: [2021/07/09 15:30:21.632856, 0] ../../source3/passdb/secrets.c:364(fetch_ldap_pw)
июл 09 15:30:21 localhost smbd[5967]: fetch_ldap_pw: neither ldap secret retrieved!
июл 09 15:30:21 localhost smbd[5967]: [2021/07/09 15:30:21.633193, 0] ../../source3/passdb/pdb_ldap.c:6653(pdb_init_ldapsam_common)
июл 09 15:30:21 localhost smbd[5967]: pdb_init_ldapsam_common: Failed to retrieve LDAP password from secrets.tdb
июл 09 15:30:21 localhost smbd[5967]: [2021/07/09 15:30:21.633275, 0] ../../source3/passdb/pdb_interface.c:180(make_pdb_method_name)
июл 09 15:30:21 localhost smbd[5967]: pdb backend ldapsam:ldap://127.0.0.1/ did not correctly init (error was NT_STATUS_NO_MEMORY)
июл 09 15:30:21 localhost systemd[1]: Started Samba SMB Daemon.
июл 09 15:30:21 localhost systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE
июл 09 15:30:21 localhost systemd[1]: smb.service: Failed with result 'exit-code'.