A
A
Anton Pashchenko2021-09-14 16:27:02
Samba
Anton Pashchenko, 2021-09-14 16:27:02

How to set up recording from a DCS-2103 (fw. 1.24) camera to a Samba server (Version 4.13.5-Debian)?

I can’t set up recording from the DCS-2103 (fw. 1.24) camera to the Samba server (Version 4.13.5-Debian) in any way.
I constantly write Test Error, although with Windows I can log in and record without problems.

Here is the smb.conf setting:

Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
# Global parameters
[global]
        client max protocol = SMB2_02
        dns proxy = No
        map to guest = Bad User
        max log size = 20480
        security = USER
        server max protocol = SMB2_02
        idmap config * : backend = tdb

[ 183]
        create mask = 0777
        directory mask = 0777
        guest ok = Yes
        path = /home/cams/captures/183
        read only = No
        valid users = cams, 183


client max protocol and server max protocol, specified all possible values ​​SMB2, SMB2_10, SMB2_22, SMB2_24, SMB3, SMB3_11. I also tried without specifying this parameter at all.

And here is the camera setting:  4dkxZjB.png

Another moment I have log level = 10,
But in the logs, all that is from the IP camera is these entries:
[2021/09/14 16:22:02.458556,  3, pid=124220, effective(0, 0), real(0, 0)] ../../lib/util/access.c:369(allow_access)
  Allowed connection from 12.77.0.183 (12.77.0.183)
[2021/09/14 16:22:02.458589, 10, pid=124220, effective(0, 0), real(0, 0)] ../../source3/smbd/process.c:3897(smbd_add_connection)
  Connection allowed from ipv4:12.77.0.183:4001 to ipv4:12.77.0.31:445
[2021/09/14 16:22:02.458681,  5, pid=124220, effective(0, 0), real(0, 0)] ../../lib/util/debug.c:811(debug_dump_status)

In the traffic monitor, the camera will properly connect to TCP port 445, just sorting through the outgoing ports: 4dkyCtY.png
Please help me figure out the recording.
SMP Debian OS Version 5.10.46-4 (2021-08-03)
Samba Version (Version 4.13.5-Debian)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Pashchenko, 2021-09-16
@sevnet

RESOLVED!!!
1. Downgraded samba version to 4.5.6.
2. Found by successively refining requests on the Internet

zo0mik 10.08.17 16:06:53:
"Well, that's why you can't write about it in all the manuals, that if you don't write just this one line, then in some cases even break your head on the clave, it may not work at all In general, it is desirable: client min protocol = NT1 client max protocol = SMB3 ntlm auth = yes create mask = 0664 directory mask = 0775 acl allow execute always = True and be sure to check the existence of the directory in the local file system and the rights to it !"

Here is the output config:
[global]
#workgroup = WORKGROUP
security = user
map to guest = bad user
wins support = no
dns proxy = no
log level = 3
client min protocol = NT1
client max protocol = SMB3
ntlm auth = yes
acl allow execute always = True
log file = /var/log/samba/log.%m

[183]
path = /home/cams/captures/183
valid users = cams
guest ok = no
browsable = yes
writable = yes
read only = no
create mask = 0665
directory mask = 0775

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question