From 1bce4dd358774f69e52fa3814eeea54e9fc6b156 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 24 Jun 2018 16:35:25 +0300 Subject: [PATCH] smbctl: explicitly add vers=1.0 when mounting shares This fixes issues with newer mount.cifs versions where the default is no longer 1.0. --- motioneye/smbctl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/motioneye/smbctl.py b/motioneye/smbctl.py index 9931961..d587794 100644 --- a/motioneye/smbctl.py +++ b/motioneye/smbctl.py @@ -191,6 +191,8 @@ def _mount(server, share, username, password): opts = 'guest' sec_types = [None, 'none', 'ntlm', 'ntlmv2', 'ntlmv2i', 'ntlmsspi'] + opts += ',vers=1.0' + for sec in sec_types: if sec: actual_opts = opts + ',sec=' + sec -- 2.39.5