summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2002-09-03 04:10:58 +0000
committerRichard Sharpe <sharpe@samba.org>2002-09-03 04:10:58 +0000
commit629ad6941e95fef465059c248ea0d99a32be2a98 (patch)
treeafcadd61b7087116a38dcbbc2c0d1d2c598445ef /source3/libsmb
parentbb30cd160b7d01b38fb6473d15a9056118d51a42 (diff)
downloadsamba-629ad6941e95fef465059c248ea0d99a32be2a98.tar.gz
samba-629ad6941e95fef465059c248ea0d99a32be2a98.tar.bz2
samba-629ad6941e95fef465059c248ea0d99a32be2a98.zip
Make sure that an NTLMSSP negotiate blob has the correct stuff in it!
(This used to be commit b28267f52c0a5c175b067d7c2d10eca83c20e640)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index c441cf28a8..7ef9b2ab82 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -486,11 +486,12 @@ static BOOL cli_session_setup_ntlmssp(struct cli_state *cli, char *user,
memset(sess_key, 0, 16);
/* generate the ntlmssp negotiate packet */
- msrpc_gen(&blob, "CddB",
+ msrpc_gen(&blob, "CddAA",
"NTLMSSP",
NTLMSSP_NEGOTIATE,
neg_flags,
- sess_key, 16);
+ workgroup, strlen(workgroup),
+ cli->calling.name, strlen(cli->calling.name));
/* and wrap it in a SPNEGO wrapper */
msg1 = gen_negTokenTarg(mechs, blob);