summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-04 13:49:05 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-04 15:50:06 +0100
commit9b4c300922d16856d2e1207072915eba48bd3f47 (patch)
tree8b68609a5f84d2c9e77dc60ca437cdefd5b3cf06 /source3
parente99017af7211be96a702ed86502b2f8be4b31d9d (diff)
downloadsamba-9b4c300922d16856d2e1207072915eba48bd3f47.tar.gz
samba-9b4c300922d16856d2e1207072915eba48bd3f47.tar.bz2
samba-9b4c300922d16856d2e1207072915eba48bd3f47.zip
s3:smbd: also send the server name in the negprot response
This matches W2K (at least sp4) and higher. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Nov 4 15:50:06 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/negprot.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c
index 3afa8b19e3..9b58a79795 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);