Unix or Linux platforms
Use the following setting in the global section of the /etc/samba/smb.conf file to force use SMB2 or NT1
- server max protocol
- client max protocol
For more details you may check this article from samba.org.
Window platform
Please check the this article from Microsoft that describes how to disable SMB3 and enable SMB1.
Note: When you enable or disable SMBv2 in Windows 8 or Windows Server 2012, SMBv3 is also enabled or disabled. This behavior occurs because these protocols share the same stack.