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 94 forks source link

Server does not support any of the pysmb dialects #203

Open alho94 opened 1 year ago

alho94 commented 1 year ago

Hello @miketeo, I am using pysmb on a OpenSUSE 15 and have installed and enabled samba version 4.15.8. Using the samba cli I am able to connect to my share, however, when I try to do so via pysmb, I end up with the following error message: image

Not sure if I am doing something wrong or if this is a OpenSuse issue after all. Any advise would be highly appreciated!

miketeo commented 1 year ago

If you have access to your Samba service, you can edit smb.conf and try changing/adding min protocol parameter to min protocol=SMB2

alho94 commented 1 year ago

Thank you for the hint. This is the smb configuration: [global] client signing = yes client use spnego = yes log file = /var/log/samba/log.%m max log size = 50 client ldap sasl wrapping = sign min protocol = SMB2_02 include = /etc/samba/include.conf

I have tried it also with min protocol = SMB2 but it ended up with the same error message as shown above.