smbd: Adjust debug level of "No protocol supported" message
authorChristof Schmitt <cs@samba.org>
Thu, 8 Sep 2016 21:16:18 +0000 (14:16 -0700)
committerVolker Lendecke <vl@samba.org>
Sat, 10 Sep 2016 12:57:11 +0000 (14:57 +0200)
SMB clients only supporting SMB1 connecting to a Samba server that only
accepts SMB protocol versions 2 and 3 can spam the logs with the "No
protocol supported" message. This is useful information for debugging
failed connection attempts, but it should not be in the default log.
Adjust it to NOTICE/3.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/negprot.c

index d2e5e2ee27e3b86c07069d9e583fcedda5a457ca..bd09b1df1b1d582db8374545e151e238fa0fae06 100644 (file)
@@ -710,7 +710,7 @@ void reply_negprot(struct smb_request *req)
                supported_protocols[protocol].proto_reply_fn(req, choice);
                DEBUG(3,("Selected protocol %s\n",supported_protocols[protocol].proto_name));
        } else {
-               DEBUG(0,("No protocol supported !\n"));
+               DBG_NOTICE("No protocol supported !\n");
                reply_outbuf(req, 1, 0);
                SSVAL(req->outbuf, smb_vwv0, choice);
        }