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
338
stars
95
forks
source link
pysmb does not work on azure due to broadcast flag in netbios.queryIPForName #14
This prevents the netbios.queryIPForName call from going through.
We've managed pysmb to work for us on Azure by changing 0x0010 to 0x0000 in nmb/base.py (in the prepareNetNameQuery method at the bottom of the file.) Basically just turning off the broadcast flag.
We don't know much (or really, anything) about the smb protocol, so we don't know if this is the right way to fix this.
In any case, what we would like to know, is whether a fix for this problem could make it into the next release?
On Azure broadcast messages are blocked.
This prevents the netbios.queryIPForName call from going through.
We've managed pysmb to work for us on Azure by changing 0x0010 to 0x0000 in nmb/base.py (in the prepareNetNameQuery method at the bottom of the file.) Basically just turning off the broadcast flag.
We don't know much (or really, anything) about the smb protocol, so we don't know if this is the right way to fix this.
In any case, what we would like to know, is whether a fix for this problem could make it into the next release?