From 9b4c300922d16856d2e1207072915eba48bd3f47 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 4 Nov 2011 13:49:05 +0100 Subject: [PATCH] s3:smbd: also send the server name in the negprot response This matches W2K (at least sp4) and higher. metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Fri Nov 4 15:50:06 CET 2011 on sn-devel-104 --- source3/smbd/negprot.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 3afa8b19e36..9b58a79795e 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -423,6 +423,14 @@ static void reply_nt1(struct smb_request *req, uint16 choice) reply_nterror(req, NT_STATUS_NO_MEMORY); return; } + ret = message_push_string(&req->outbuf, lp_netbios_name(), + STR_UNICODE|STR_TERMINATE + |STR_NOALIGN); + if (ret == -1) { + DEBUG(0, ("Could not push netbios name string\n")); + reply_nterror(req, NT_STATUS_NO_MEMORY); + return; + } DEBUG(3,("not using SPNEGO\n")); } else { DATA_BLOB spnego_blob = negprot_spnego(req, req->sconn); -- 2.11.4.GIT