icewind1991 / SMB

PHP wrapper for smbclient
MIT License
132 stars 53 forks source link

smbclient wrapper set max protocol #55

Open jaysonhelseth opened 7 years ago

jaysonhelseth commented 7 years ago

When using the wrapper, when php libsmbclient is not available, can I set the max protocol for smbclient? When looking at the usage for the smbclient library in linux, I have the ability to use --max-protocol=LEVEL. LEVEL can be SMB1, SMB2, or SMB3. Our organization has shutdown the use of SMB protocol (version) 1.0, so I can only mount or browse with SMB2 or SMB3. I have verified that using --max-protocol from the command line is allowing smbclient to work properly in our locked down environment. Now if I could get it to work from icewind, the php web application would not have any connection problems either.

ariselseng commented 7 years ago

I have the same issue. I need to set the protocol. SMB v1 is disabled.