miketeo / pysmb

pysmb is an experimental SMB/CIFS library written in Python. It implements the client-side SMB/CIFS protocol (SMB1 and SMB2) which allows your Python application to access and transfer files to/from SMB/CIFS shared folders like your Windows file sharing and Samba folders.
Other
340 stars 95 forks source link

Server does not support any of the pysmb dialects. Please email pysmb to add in support for your OS #211

Open RogueCultivators opened 1 year ago

RogueCultivators commented 1 year ago

image

image

I want to support timemachine, but the protocol is at least smb2, but using pysmb cannot support this protocol

RoyWiggins commented 7 months ago

we've found that sometimes setting min protocol = SMB2 ends up setting SMB2.1 as the minimum version that Samba will negotiate. pysmb doesn't support SMB2.1 (sometimes denoted 2_10). Explicitly setting min protocol = SMB2_02 fixed it for us.

You can test this at the command line by setting the maximum version smbclient will negotiate. For pysmb to work, the server needs to negotiate SMB2_02 (which is SMB version 2.0.2):

smbclient -m SMB2_02 -U <user> -c "ls" <server>