mirror of
https://github.com/samba-team/samba.git
synced 2025-03-31 10:50:24 +03:00
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
This commit is contained in:
parent
e99017af72
commit
9b4c300922
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user