Bug 12881 - smbclient: enhancement request: add negotiated protocol (SMB1, SMB2, SMb3) in output
smbclient: enhancement request: add negotiated protocol (SMB1, SMB2, SMb3) in...
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools
4.7.0rc1
All All
: P5 regression
: 4.7
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-05 22:25 UTC by Giulio
Modified: 2017-08-16 10:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giulio 2017-07-05 22:25:13 UTC
Since smbclient is now defaulting to "max protocol = smb3", it would be useful for smbclient to output the negotiated protocol.


Ie:
smbclient -d <you.decide>  ...
Remote server max protocol SMBx, local client max protocol SMBy, negotiated SMBz
Try "help" do get a list of possible commands.
smb: \>


Right now, even with -d 10, it's not very clear which protocol is negotiated and why.

Thanks
Comment 1 Stefan Metzmacher 2017-08-16 10:46:27 UTC
We can add "negotiated dialect[SMB2_10] against server[172.31.9.133]" with log level 4 similar to the "session request ok" message.

The real list would be to add/extend commands like "listconnect" or "showconnect", but that needs more work as we would want a lot more details
in addition to the selected dialect.