Samba attempts to negotiate the protocol based on a number of different settings.

There are a number of "protocol" statements that control this interaction

client min protocol
client max...