Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the "MaxProtocol" method to set the maximum version for SMB connection. #57

Closed
wants to merge 3 commits into from

Conversation

mdoliveira
Copy link

Microsoft has advised its clients that version 1 of SMB is disabled on servers, but with this method it is possible to set the version. Example: 2 or 3.

icewind1991 and others added 3 commits April 24, 2017 15:46
Adicionado método para definir o protocolo de SMB máximo.
Adicionado método para definir o protocolo de SMB máximo.
@mdoliveira
Copy link
Author

I found a request for this in the problems...
#55

@icewind1991
Copy link
Owner

I'm hesitant to add this until php-smbclient can support the same thing

@mmattel
Copy link
Contributor

mmattel commented Jan 28, 2021

@icewind1991 now it can, see #99 (New eduardok smbclient option: smbclient_client_protocols)

/**
* @param integer $maxProtocol
*/
public function setMaxProtocol($maxProtocol) {
Copy link
Contributor

@mmattel mmattel Jan 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function needs an adoption because you can set NT1 and SMB2/3.
The option should not be -m but --option... as you can see in the referenced issue above

@icewind1991 icewind1991 force-pushed the master branch 7 times, most recently from e4b0bcd to 80a4edf Compare March 2, 2021 17:56
@icewind1991
Copy link
Owner

I've implemented this differently in 3.3.0, thanks for the work anyway!

@icewind1991 icewind1991 closed this Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants