Currently when we connect to a NetApp server and smbclient or libsmbclient sends an echo request a NetApp Server responds with STATUS_INVALID_PARAMETER because it can't deal with a session ID of 0. If we get a response from a server we should not terminate the connection but see it as the server is responsive. Quote from cifs-protocol: Client behavior in regards to ECHO is implementation-specific (there is no mention in section 3.2). ECHO is merely a keep-alive ping to see if the server is responsive, so any response could be considered success. All the Server does (besides disconnecting the connection if Connection.SessionTable is empty) is validate the structure of the request. If the server returns STATUS_INVALID_PARAMETER, this indicates the Client formed the request incorrectly, but shows the Server is responsive (as does any response, error or success). See https://lists.samba.org/archive/cifs-protocol/2017-July/003071.html The server docs have been updated, see: https://lists.samba.org/archive/cifs-protocol/2017-July/003073.html
Created attachment 13561 [details] git-am fix for master Andreas, can you test this please ? I don't have a NetApp here.
Created attachment 13562 [details] git-am fix for master Forgot to fix smbclient as well in previous patch.
I will try to get feedback. However could be October ...
Comment on attachment 13562 [details] git-am fix for master Pushed to autobuild.
Created attachment 13779 [details] git-am fix for 4.7.next, 4.6.next. Cherry-picked from master.
Karolin, please add the patch to the relevant branches. Thanks!
(In reply to Andreas Schneider from comment #6) Pushed to autobuild-v4-{7,6}-test.
(In reply to Karolin Seeger from comment #7) Pushed to both branches. Closing out bug report. Thanks!